This commit is contained in:
John Supplee 2021-12-20 10:27:32 +02:00
commit 84d0817894
14 changed files with 36 additions and 18 deletions

View file

@ -75,10 +75,10 @@ CardComments.allow({
return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
},
update(userId, doc) {
return userId === doc.userId;
return userId === doc.userId || allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
},
remove(userId, doc) {
return userId === doc.userId;
return userId === doc.userId || allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
},
fetch: ['userId', 'boardId'],
});