From ca952ce7483234fda04ee1e1f11dfca431b1dfef Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 8 Apr 2024 10:14:22 +0200 Subject: [PATCH] merging master + rbac-generation --- .../hsadminng/hs/office/person/HsOfficePersonEntity.java | 2 +- .../5-hs-office/502-person/5023-hs-office-person-rbac.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntity.java b/src/main/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntity.java index 5f2ad6ec..5f847842 100644 --- a/src/main/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntity.java +++ b/src/main/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntity.java @@ -76,7 +76,7 @@ public class HsOfficePersonEntity implements RbacObject, Stringifyable { public static RbacView rbac() { return rbacViewFor("person", HsOfficePersonEntity.class) .withIdentityView(SQL.projection("concat(tradeName, familyName, givenName)")) - .withUpdatableColumns("personType", "tradeName", "givenName", "familyName") + .withUpdatableColumns("personType", "title", "salutation", "tradeName", "givenName", "familyName") .toRole("global", GUEST).grantPermission(INSERT) .createRole(OWNER, (with) -> { diff --git a/src/main/resources/db/changelog/5-hs-office/502-person/5023-hs-office-person-rbac.sql b/src/main/resources/db/changelog/5-hs-office/502-person/5023-hs-office-person-rbac.sql index 6dbbf21b..0d983725 100644 --- a/src/main/resources/db/changelog/5-hs-office/502-person/5023-hs-office-person-rbac.sql +++ b/src/main/resources/db/changelog/5-hs-office/502-person/5023-hs-office-person-rbac.sql @@ -138,6 +138,8 @@ call generateRbacRestrictedView('hs_office_person', $orderBy$, $updates$ personType = new.personType, + title = new.title, + salutation = new.salutation, tradeName = new.tradeName, givenName = new.givenName, familyName = new.familyName