diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-04-04 18:46:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 18:46:44 +0300 |
commit | 30fde1a4069dd66eb1a8af788b5a4ac3db7bb6c7 (patch) | |
tree | 73251381fe7695e47345f77a3ac313f24eab1a50 | |
parent | 656e7e617225779a0d0725eb716f916fd0ff2793 (diff) | |
parent | 6db86489abd06a1884e721638707d6656138ee4d (diff) | |
download | wekan-30fde1a4069dd66eb1a8af788b5a4ac3db7bb6c7.tar.gz wekan-30fde1a4069dd66eb1a8af788b5a4ac3db7bb6c7.tar.bz2 wekan-30fde1a4069dd66eb1a8af788b5a4ac3db7bb6c7.zip |
Merge pull request #976 from dwrensha/sandstorm-is-comment-only
fix updateUserPermissions() on Sandstorm
-rw-r--r-- | sandstorm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandstorm.js b/sandstorm.js index 3e04d79f..2e79c27c 100644 --- a/sandstorm.js +++ b/sandstorm.js @@ -205,7 +205,8 @@ if (isSandstorm && Meteor.isServer) { function updateUserPermissions(userId, permissions) { const isActive = permissions.indexOf('participate') > -1; const isAdmin = permissions.indexOf('configure') > -1; - const permissionDoc = { userId, isActive, isAdmin }; + const isCommentOnly = false; + const permissionDoc = { userId, isActive, isAdmin, isCommentOnly }; const boardMembers = Boards.findOne(sandstormBoard._id).members; const memberIndex = _.pluck(boardMembers, 'userId').indexOf(userId); |