Merge pull request #925 from rhelsing/comment-permissions

Comment permissions
This commit is contained in:
Lauri Ojansivu 2017-03-28 20:55:02 +03:00 committed by GitHub
commit 578619d409
22 changed files with 177 additions and 63 deletions

View file

@ -6,6 +6,10 @@ allowIsBoardMember = function(userId, board) {
return board && board.hasMember(userId);
};
allowIsBoardMemberNonComment = function(userId, board) {
return board && board.hasMember(userId) && !board.hasCommentOnly(userId);
};
allowIsBoardMemberByCard = function(userId, card) {
const board = card.board();
return board && board.hasMember(userId);