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

Permissions - role could be assigned to itself as a child role

parent 7f4dbfc0
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,11 @@ import("system.result");
var sqlStr = "select ASYS_ROLES.ROLENAME from ASYS_ROLES";
var roleNames = db.array(db.COLUMN, sqlStr);
var parentRole = vars.get("$param.RoleId_param");
var childRoles = [];
for each (let roleName in roleNames) {
if (roleName != vars.get("$field.PARENT_ROLE")) {
if (roleName != parentRole) {
childRoles.push([roleName, roleName]);
}
}
......
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