mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Beautyfied
This commit is contained in:
parent
30a3daa6af
commit
25da8376ca
15 changed files with 715 additions and 461 deletions
|
|
@ -1,19 +1,16 @@
|
|||
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);
|
||||
};
|
||||
|
||||
allowIsBoardMemberNonComment = function(userId, board) {
|
||||
return board && board.hasMember(userId) && !board.hasCommentOnly(userId);
|
||||
return board && board.hasMember(userId) && !board.hasCommentOnly(userId);
|
||||
};
|
||||
|
||||
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