summaryrefslogtreecommitdiffstats
path: root/server/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/utils.js')
-rw-r--r--server/lib/utils.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/lib/utils.js b/server/lib/utils.js
index c7763933..ee925847 100644
--- a/server/lib/utils.js
+++ b/server/lib/utils.js
@@ -6,10 +6,14 @@ allowIsBoardMember = function(userId, board) {
return board && board.hasMember(userId);
};
-allowIsBoardMemberNonComment = function(userId, board) {
+allowIsBoardMemberCommentOnly = function(userId, board) {
return board && board.hasMember(userId) && !board.hasCommentOnly(userId);
};
+allowIsBoardMemberNoComments = function(userId, board) {
+ return board && board.hasMember(userId) && !board.hasNoComments(userId);
+};
+
allowIsBoardMemberByCard = function(userId, card) {
const board = card.board();
return board && board.hasMember(userId);