diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-08-03 20:43:37 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-08-03 20:43:37 +0200 |
commit | 7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d (patch) | |
tree | d826ff275419313bb81ad18802da96f4ecbd93c0 /models/rules.js | |
parent | f63482b58775a2f52fdd5f932ce7d14f16757133 (diff) | |
download | wekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.tar.gz wekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.tar.bz2 wekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.zip |
Add and remove ui
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; + }, }); |