mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Merge pull request #976 from dwrensha/sandstorm-is-comment-only
fix updateUserPermissions() on Sandstorm
This commit is contained in:
commit
30fde1a406
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue