mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 23:21:47 +01:00
Merge pull request #925 from rhelsing/comment-permissions
Comment permissions
This commit is contained in:
commit
578619d409
22 changed files with 177 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue