From 7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d Mon Sep 17 00:00:00 2001 From: Angelo Gallarello Date: Fri, 3 Aug 2018 20:43:37 +0200 Subject: Add and remove ui --- models/rules.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'models') 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; + }, }); -- cgit v1.2.3-1-g7c22