diff --git a/models/triggers.js b/models/triggers.js index e4e5ac462..083c860e6 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 4af6c08cb..1ce8db5ed 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); }