diff options
Diffstat (limited to 'server/lib/utils.js')
-rw-r--r-- | server/lib/utils.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/server/lib/utils.js b/server/lib/utils.js index bdf914ef..17e63514 100644 --- a/server/lib/utils.js +++ b/server/lib/utils.js @@ -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); +};
\ No newline at end of file |