Skip to content
Snippets Groups Projects
Commit 6565ec84 authored by Simon Leipold's avatar Simon Leipold Committed by Sebastian Listl
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1079523][Rollen-Hierarchie wird bei...

[Projekt: Entwicklung - Neon][TicketNr.: 1079523][Rollen-Hierarchie wird bei Erstellung im Client nicht beachtet]
parent c7127883
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ var parentRole = vars.get("$param.RoleId_param");
var roleType = vars.get("$param.RoleType_param");
var allPossibleRoles;
if (roleType && roleType == "PROJECT")
allPossibleRoles = tools.getAllRoles(["PROJECT"], true);
if (roleType && (roleType == "PROJECT" || roleType == "INTERNAL"))
result.object([]);
else
allPossibleRoles = tools.getAllRoles(["CUSTOM", "PROJECT"], true);
allPossibleRoles = tools.getAllRoles(["CUSTOM", "PROJECT", "INTERNAL"], true);
var childRoles = newSelect("CHILD_ROLE", alias)
.from("ASYS_ROLES_CHILDREN")
......
......@@ -97,6 +97,7 @@
</entityField>
<entityConsumer>
<name>RoleChildrens</name>
<stateProcess>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/stateProcess.js</stateProcess>
<onValidation>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/onValidation.js</onValidation>
<dependency>
<name>dependency</name>
......
import("system.result");
import("system.vars");
import("system.neon");
var roleType = vars.get("$field.ROLETYPE");
if (roleType == "PROJECT" || roleType == "INTERNAL")
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
\ 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