From 77efcf71376d3da6c19ad1a4910567263e83c0ca Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 4 Sep 2018 20:09:36 +0300 Subject: - Add permission "No comments". It is like normal user, but does not show comments and activities. Thanks to xet7 ! --- sandstorm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sandstorm.js') diff --git a/sandstorm.js b/sandstorm.js index d34bc015..37dced92 100644 --- a/sandstorm.js +++ b/sandstorm.js @@ -208,7 +208,8 @@ if (isSandstorm && Meteor.isServer) { const isActive = permissions.indexOf('participate') > -1; const isAdmin = permissions.indexOf('configure') > -1; const isCommentOnly = false; - const permissionDoc = { userId, isActive, isAdmin, isCommentOnly }; + const isNoComments = false; + const permissionDoc = { userId, isActive, isAdmin, isNoComments, isCommentOnly }; const boardMembers = Boards.findOne(sandstormBoard._id).members; const memberIndex = _.pluck(boardMembers, 'userId').indexOf(userId); -- cgit v1.2.3-1-g7c22