summaryrefslogtreecommitdiffstats
path: root/models/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/rules.js')
-rw-r--r--models/rules.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/models/rules.js b/models/rules.js
index fe6b04cb..7d971980 100644
--- a/models/rules.js
+++ b/models/rules.js
@@ -31,11 +31,10 @@ Rules.helpers({
},
getTrigger(){
return Triggers.findOne({_id:this.triggerId});
- }
+ },
});
-
Rules.allow({
insert(userId, doc) {
return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
@@ -45,5 +44,5 @@ Rules.allow({
},
remove(userId, doc) {
return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
- }
+ },
});