Skip to content
Snippets Groups Projects
Commit 589ed0c8 authored by S.Leipold's avatar S.Leipold Committed by Simon Leipold
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1070819][Berechtigung Zugrifftyp...

[Projekt: Entwicklung - Neon][TicketNr.: 1070819][Berechtigung Zugrifftyp Entität bearbeiten ist fehlerhaft]

(cherry picked from commit f5d6638d)
parent 3683a2bb
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,11 @@ var roleName = vars.get("$field.ROLE");
var entity = vars.get("$field.ENTITY");
var accesstype = vars.get("$field.ACCESSTYPE");
if (operatingState == neon.OPERATINGSTATE_SEARCH || operatingState == neon.OPERATINGSTATE_VIEW) {
if (
operatingState == neon.OPERATINGSTATE_SEARCH ||
operatingState == neon.OPERATINGSTATE_VIEW ||
operatingState == neon.OPERATINGSTATE_EDIT
) {
switch (accesstype) {
case "E":
result.string(translate.text("Entity"));
......@@ -23,7 +27,7 @@ if (operatingState == neon.OPERATINGSTATE_SEARCH || operatingState == neon.OPERA
break;
}
} else {
// editing/creating a new permission
// creating a new permission
// if there is no permission set for a given role-entity-combination or only one with condtype 0 -> permission has to be Entity
// otherwise Record
// if $field.FIELD is filled, then its a permission on Field access level
......
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