add-salut-and-title-to-person #25
@ -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) -> {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user