diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-10-13 14:17:53 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-10-13 14:17:53 +0200 |
commit | e504ac28940f614652f8e414aa0a67f60985bb89 (patch) | |
tree | b6363323fb60485bdc66bc27ead10f79211c392a /sandstorm.js | |
parent | bf46a214050cf468d2b08436a8d070ed5c24c852 (diff) | |
download | wekan-e504ac28940f614652f8e414aa0a67f60985bb89.tar.gz wekan-e504ac28940f614652f8e414aa0a67f60985bb89.tar.bz2 wekan-e504ac28940f614652f8e414aa0a67f60985bb89.zip |
Enforce "public" visibility for Sandstorm boards
Fixes #346
Diffstat (limited to 'sandstorm.js')
-rw-r--r-- | sandstorm.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sandstorm.js b/sandstorm.js index 97d42bdf..b0039d63 100644 --- a/sandstorm.js +++ b/sandstorm.js @@ -101,6 +101,15 @@ if (isSandstorm && Meteor.isServer) { updateUserPermissions(doc._id, doc.services.sandstorm.permissions); }); + + // LibreBoard v0.8 didn’t implement the Sandstorm sharing model and instead + // kept the visibility setting (“public” or “private”) in the UI as does the + // main Meteor application. We need to enforce “public” visibility has the + // sharing is now handled by Sandstorm. + // See https://github.com/wekan/wekan/issues/346 + Migrations.add('enforce-public-visibility-for-sandstorm', () => { + Boards.update('sandstorm', { $set: { permission: 'public' }}); + }); } if (isSandstorm && Meteor.isClient) { |