summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sandstorm.js3
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);