From d7f0727efe149c668c5d3d247145d3018c4604d1 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 26 Feb 2024 11:19:38 +0100 Subject: [PATCH] fix relationship holderPerson-role --- .../hs/office/relationship/HsOfficeRelationshipEntity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/hostsharing/hsadminng/hs/office/relationship/HsOfficeRelationshipEntity.java b/src/main/java/net/hostsharing/hsadminng/hs/office/relationship/HsOfficeRelationshipEntity.java index 3637a0ac..80cd5607 100644 --- a/src/main/java/net/hostsharing/hsadminng/hs/office/relationship/HsOfficeRelationshipEntity.java +++ b/src/main/java/net/hostsharing/hsadminng/hs/office/relationship/HsOfficeRelationshipEntity.java @@ -103,9 +103,10 @@ public class HsOfficeRelationshipEntity implements HasUuid, Stringifyable { .createSubRole(ADMIN, (with) -> { with.permission(EDIT); }) - .createSubRole(AGENT) + .createSubRole(AGENT, (with) -> { + with.incomingSuperRole("holderPerson", ADMIN); + }) .createSubRole(TENANT, (with) -> { - with.incomingSuperRole("anchorPerson", ADMIN); with.incomingSuperRole("holderPerson", ADMIN); with.incomingSuperRole("contact", ADMIN); with.outgoingSubRole("anchorPerson", REFERRER);