modernize group_add/delete and invitation accepted

This commit is contained in:
Marco Lettere 2023-10-12 15:45:11 +02:00
parent 1927fe6df8
commit 4f6b9698f5
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
"user" : "${workflow.input.user}", "user" : "${workflow.input.user}",
"group" : "${workflow.input.group}", "group" : "${workflow.input.group}",
"evaluatorType" : "javascript", "evaluatorType" : "javascript",
"expression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.user) || e($.group)) throw('User and Group must not be empty'); var path = $.group.startsWith('%2F') ? $.group.split('%2F').slice(1) : [$.group]; return { 'tree' : Java.to(path, 'java.lang.Object[]'), 'name' : path.slice(path.length-1)[0], 'search' : encodeURIComponent(path.slice(path.length-1)[0])}" "expression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.user) || e($.group)) throw('User and Group must not be empty'); function f(){ var path = $.group.startsWith('%2F') ? $.group.split('%2F').slice(1) : [$.group]; return { 'tree' : path, 'name' : path.slice(path.length-1)[0], 'search' : encodeURIComponent(path.slice(path.length-1)[0])}} f()"
} }
}, },
{ {

View File

@ -17,7 +17,7 @@
"group" : "${workflow.input.group}", "group" : "${workflow.input.group}",
"user" : "${workflow.input.user}", "user" : "${workflow.input.user}",
"evaluatorType" : "javascript", "evaluatorType" : "javascript",
"expression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.user) || e($.group)) throw('User and Group must not be empty'); var path = $.group.startsWith('%2F') ? $.group.split('%2F').slice(1) : [$.group]; return { 'tree' : Java.to(path, 'java.lang.Object[]'), 'name' : path.slice(path.length-1)[0], search : encodeURIComponent(path.slice(path.length-1)[0])}" "expression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.user) || e($.group)) throw('User and Group must not be empty'); function f(){var path = $.group.startsWith('%2F') ? $.group.split('%2F').slice(1) : [$.group]; return { 'tree' : path, 'name' : path.slice(path.length-1)[0], search : encodeURIComponent(path.slice(path.length-1)[0])}} f()"
} }
}, },
{ {