diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-14 17:39:37 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-14 17:39:37 +0200 |
commit | 25da8376ca2ee3b7bedadf924557d4d7bb6c6771 (patch) | |
tree | a96f00a3a050ea90385e6cd56cf15516cf4e437e /server | |
parent | 30a3daa6af179009ac17b40a71bf3f9e9b1d698a (diff) | |
download | wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.gz wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.bz2 wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.zip |
Beautyfied
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/utils.js | 15 | ||||
-rw-r--r-- | server/publications/rules.js | 16 |
2 files changed, 14 insertions, 17 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 diff --git a/server/publications/rules.js b/server/publications/rules.js index 7aeb66bf..29be2e78 100644 --- a/server/publications/rules.js +++ b/server/publications/rules.js @@ -1,18 +1,18 @@ Meteor.publish('rules', (ruleId) => { - check(ruleId, String); - return Rules.find({ _id: ruleId }); + check(ruleId, String); + return Rules.find({ + _id: ruleId + }); }); - Meteor.publish('allRules', () => { - return Rules.find({}); + return Rules.find({}); }); - Meteor.publish('allTriggers', () => { - return Triggers.find({}); + return Triggers.find({}); }); Meteor.publish('allActions', () => { - return Actions.find({}); -}); + return Actions.find({}); +});
\ No newline at end of file |