Beautyfied

This commit is contained in:
Angelo Gallarello 2018-09-14 17:39:37 +02:00
parent 30a3daa6af
commit 25da8376ca
15 changed files with 715 additions and 461 deletions

View file

@ -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);
};