summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/hbs_helpers/getOperators.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/hbs_helpers/getOperators.js')
-rw-r--r--apps/workflowengine/src/hbs_helpers/getOperators.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/workflowengine/src/hbs_helpers/getOperators.js b/apps/workflowengine/src/hbs_helpers/getOperators.js
new file mode 100644
index 00000000000..4e3606fe82c
--- /dev/null
+++ b/apps/workflowengine/src/hbs_helpers/getOperators.js
@@ -0,0 +1,7 @@
+module.exports = function(classname) {
+ var check = OCA.WorkflowEngine.getCheckByClass(classname);
+ if (!_.isUndefined(check)) {
+ return check['operators'];
+ }
+ return [];
+}