summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-03 20:43:37 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-03 20:43:37 +0200
commit7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d (patch)
treed826ff275419313bb81ad18802da96f4ecbd93c0 /models
parentf63482b58775a2f52fdd5f932ce7d14f16757133 (diff)
downloadwekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.tar.gz
wekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.tar.bz2
wekan-7e4bd4a0a753531c2716ff39ce88f05b7fc30c0d.zip
Add and remove ui
Diffstat (limited to 'models')
-rw-r--r--models/rules.js17
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;
+ },
});