From c9da1309039dce401ddb8c3bdd42439279eea0b3 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Wed, 13 Nov 2019 15:22:20 +0100 Subject: [PATCH] fix #1046678: Attributes that are "Protecetd" (e.g. a group within the attrTree) cannot be edited anymore (delete-protection was already inserted) # Conflicts: # entity/AttributeRelation_entity/AttributeRelation_entity.aod --- entity/AttributeRelation_entity/AttributeRelation_entity.aod | 1 + entity/AttributeRelation_entity/grantUpdateProcess.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 entity/AttributeRelation_entity/grantUpdateProcess.js diff --git a/entity/AttributeRelation_entity/AttributeRelation_entity.aod b/entity/AttributeRelation_entity/AttributeRelation_entity.aod index 589422ad908..9b293dd144d 100644 --- a/entity/AttributeRelation_entity/AttributeRelation_entity.aod +++ b/entity/AttributeRelation_entity/AttributeRelation_entity.aod @@ -4,6 +4,7 @@ <majorModelMode>DISTRIBUTED</majorModelMode> <documentation>%aditoprj%/entity/AttributeRelation_entity/documentation.adoc</documentation> <title>Attribute</title> + <grantUpdateProcess>%aditoprj%/entity/AttributeRelation_entity/grantUpdateProcess.js</grantUpdateProcess> <grantDeleteProcess>%aditoprj%/entity/AttributeRelation_entity/grantDeleteProcess.js</grantDeleteProcess> <titlePlural>Attributes</titlePlural> <recordContainer>jdito</recordContainer> diff --git a/entity/AttributeRelation_entity/grantUpdateProcess.js b/entity/AttributeRelation_entity/grantUpdateProcess.js new file mode 100644 index 00000000000..6e445404085 --- /dev/null +++ b/entity/AttributeRelation_entity/grantUpdateProcess.js @@ -0,0 +1,4 @@ +import("system.result"); +import("system.vars"); + +result.object(vars.get("$field.PROTECTED") != "true"); \ No newline at end of file -- GitLab