summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 00:42:14 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 00:42:14 +0200
commit99e7c659072943b80b08564465ee8cb5c90d3905 (patch)
tree0648d19a5915c33ed5e45a30d9c8baae5ee21630
parent6828ccd7f17d14f178e6742d78bdd14428ec6e07 (diff)
downloadwekan-99e7c659072943b80b08564465ee8cb5c90d3905.tar.gz
wekan-99e7c659072943b80b08564465ee8cb5c90d3905.tar.bz2
wekan-99e7c659072943b80b08564465ee8cb5c90d3905.zip
Fixed remove
-rw-r--r--models/triggers.js4
-rw-r--r--server/rulesHelper.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/models/triggers.js b/models/triggers.js
index e4e5ac46..083c860e 100644
--- a/models/triggers.js
+++ b/models/triggers.js
@@ -16,6 +16,10 @@ Triggers.allow({
insert: function () {
// add custom authentication code here
return true;
+ },
+ remove: function () {
+ // add custom authentication code here
+ return true;
}
});
diff --git a/server/rulesHelper.js b/server/rulesHelper.js
index 4af6c08c..1ce8db5e 100644
--- a/server/rulesHelper.js
+++ b/server/rulesHelper.js
@@ -3,7 +3,9 @@ RulesHelper = {
executeRules(activity){
const matchingRules = this.findMatchingRules(activity);
+ console.log(matchingRules);
for(let i = 0;i< matchingRules.length;i++){
+ console.log(matchingRules[i]);
const actionType = matchingRules[i].getAction().actionType;
this.performAction(activity,actionType);
}