mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 00:40:12 +01:00
Merge branch 'feature-rules' of https://github.com/Angtrim/wekan into Angtrim-feature-rules
This commit is contained in:
commit
6673b79738
60 changed files with 3074 additions and 259 deletions
|
|
@ -1,9 +1,9 @@
|
|||
allowIsBoardAdmin = function(userId, board) {
|
||||
return board && board.hasAdmin(userId);
|
||||
return board && board.hasAdmin(userId);
|
||||
};
|
||||
|
||||
allowIsBoardMember = function(userId, board) {
|
||||
return board && board.hasMember(userId);
|
||||
return board && board.hasMember(userId);
|
||||
};
|
||||
|
||||
allowIsBoardMemberCommentOnly = function(userId, board) {
|
||||
|
|
@ -15,6 +15,6 @@ allowIsBoardMemberNoComments = function(userId, board) {
|
|||
};
|
||||
|
||||
allowIsBoardMemberByCard = function(userId, card) {
|
||||
const board = card.board();
|
||||
return board && board.hasMember(userId);
|
||||
const board = card.board();
|
||||
return board && board.hasMember(userId);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue