create user add to vre and parent groups (feature #21866)

This commit is contained in:
Marco Lettere 2021-09-22 11:37:53 +02:00
parent 4db9a865cc
commit f14e338e6e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@
"inputParameters": {
"tree" : "${init.output.result.tree}",
"groups" : "${look_up_groups.output.body}",
"scriptExpression": "function selectByPath(groups, path, level, acc), { for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {acc.push(groups[i]); if (level === path.length - 1) return acc;return selectByPath(groups[i].subGroups, path, level+1, acc)}} return []; } return { 'groups' : selectByPath($.groups, $.tree, 0, [])}"
"scriptExpression": "function selectByPath(groups, path, level, acc){ for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {acc.push(groups[i]); if (level === path.length - 1) return acc;return selectByPath(groups[i].subGroups, path, level+1, acc)}} return []; } return { 'groups' : selectByPath($.groups, $.tree, 0, [])}"
}
},
{