diff --git a/entity/PermissionDetail_entity/entityfields/accesstype/displayValueProcess.js b/entity/PermissionDetail_entity/entityfields/accesstype/displayValueProcess.js index 366a3b45d7d89260fedc3f340331ff5d67f22f55..a559d0e548e50f9100892d4f684a222c0477f25d 100644 --- a/entity/PermissionDetail_entity/entityfields/accesstype/displayValueProcess.js +++ b/entity/PermissionDetail_entity/entityfields/accesstype/displayValueProcess.js @@ -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