summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/js/usergroupmembershipplugin.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-26 17:34:05 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-27 10:21:26 +0200
commit7588f648a14bd6ec3c2573ede5327b0277ecccf0 (patch)
treee81d03269e71ac0dae9d8a718e97a2dcee9cd4c9 /apps/workflowengine/js/usergroupmembershipplugin.js
parent318d68a9a95cc710aa30c24a84d78da280327aef (diff)
downloadnextcloud-server-7588f648a14bd6ec3c2573ede5327b0277ecccf0.tar.gz
nextcloud-server-7588f648a14bd6ec3c2573ede5327b0277ecccf0.zip
Generate the checks list in JS
Diffstat (limited to 'apps/workflowengine/js/usergroupmembershipplugin.js')
-rw-r--r--apps/workflowengine/js/usergroupmembershipplugin.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/workflowengine/js/usergroupmembershipplugin.js b/apps/workflowengine/js/usergroupmembershipplugin.js
index 2a6068cda90..528a7bd3e3d 100644
--- a/apps/workflowengine/js/usergroupmembershipplugin.js
+++ b/apps/workflowengine/js/usergroupmembershipplugin.js
@@ -24,6 +24,16 @@
OCA.WorkflowEngine.Plugins = OCA.WorkflowEngine.Plugins || {};
OCA.WorkflowEngine.Plugins.UserGroupMembershipPlugin = {
+ getCheck: function() {
+ return {
+ 'class': 'OCA\\WorkflowEngine\\Check\\UserGroupMembership',
+ 'name': t('workflowengine', 'User group membership'),
+ 'operators': [
+ {'operator': 'is', 'name': t('workflowengine', 'is member of')},
+ {'operator': '!is', 'name': t('workflowengine', 'is not member of')}
+ ]
+ };
+ },
render: function(element, classname, value) {
if (classname !== 'OCA\\WorkflowEngine\\Check\\UserGroupMembership') {
return;