From fccc69ecd0172accb1ea223d91ea963f67a02ff4 Mon Sep 17 00:00:00 2001 From: Yves Peter Date: Mon, 22 Jul 2024 09:23:34 +0200 Subject: [PATCH] fix: allow to add node to AppServer with update resouce permission --- .../presentation/propertyEdit/RelationDataProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AMW_web/src/main/java/ch/puzzle/itc/mobiliar/presentation/propertyEdit/RelationDataProvider.java b/AMW_web/src/main/java/ch/puzzle/itc/mobiliar/presentation/propertyEdit/RelationDataProvider.java index 62f79100a..875edbaec 100644 --- a/AMW_web/src/main/java/ch/puzzle/itc/mobiliar/presentation/propertyEdit/RelationDataProvider.java +++ b/AMW_web/src/main/java/ch/puzzle/itc/mobiliar/presentation/propertyEdit/RelationDataProvider.java @@ -219,8 +219,7 @@ public void loadResourceGroupsForType(String typeName, String identifier) { resourceTypes = new ArrayList<>(resourceTypeDataProvider.getRootResourceTypes()); Collections.sort(resourceTypes); - if (getResourceType().isApplicationServerResourceType() - && permissionService.hasPermission(Permission.RESOURCE, Action.UPDATE, getResourceType())) { + if (getResourceType().isApplicationServerResourceType()) { // The application server can additionally add nodes resourceTypes = new ArrayList<>(resourceTypes); resourceTypes.add(0, resourceTypeDataProvider.getByName(DefaultResourceTypeDefinition.NODE.name()));