diff options
Diffstat (limited to 'models/rules.js')
-rw-r--r-- | models/rules.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/models/rules.js b/models/rules.js index 2304d2dc..df0cccea 100644 --- a/models/rules.js +++ b/models/rules.js @@ -5,7 +5,11 @@ Rules.attachSchema(new SimpleSchema({ type: String, optional: true, }, - description: { + triggerId: { + type: String, + optional: true, + }, + actionId: { type: String, optional: true, }, @@ -17,11 +21,22 @@ Rules.mutations({ }, }); + + + Rules.allow({ update: function () { // add custom authentication code here return true; }, + remove: function () { + // add custom authentication code here + return true; + }, + insert: function () { + // add custom authentication code here + return true; + }, }); |