Skip to content
Snippets Groups Projects
Commit 447738c3 authored by Simon Leipold's avatar Simon Leipold
Browse files

Permissions - bug fix: PermissionAction returns now the right number of records

parent 60723e1e
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,20 @@ if (permissionId && PermissionUtil.permissionExists(permissionId))
for each (var permActionId in permActions) {
actions.push([permActionId[0], PermissionUtil.resolveActionId(permActionId), PermissionUtil.resolveActionId(permActionId)]);
}
var ids = vars.get("$local.idvalues");
if (ids != null)
{
actions = actions.filter(function(action)
{
for (let i = 0; i < ids.length; i++)
{
if (action[0] == ids[i])
return true;
}
return false;
});
}
result.object(actions);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment