feat: extended role hierarchy
This commit is contained in:
@@ -15,9 +15,14 @@ security:
|
||||
mailjet:
|
||||
password: '%env(MAILJET_WEBHOOK_BASIC_PASSWORD)%'
|
||||
roles: [ ROLE_MAILJET_WEBHOOK ]
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: [ ROLE_GROUPS_ADMIN ]
|
||||
ROLE_GROUPS_ADMIN: [ ROLE_GROUPS_MANAGER ]
|
||||
ROLE_ADMIN:
|
||||
- ROLE_GROUPS_ADMIN
|
||||
- ROLE_HOUSE_MANAGER
|
||||
ROLE_GROUPS_ADMIN:
|
||||
- ROLE_GROUPS_MANAGER
|
||||
-
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
|
||||
@@ -51,7 +51,6 @@ class CrmAttributesResponseParser
|
||||
}
|
||||
if (self::BPN_CRM_ID_ADMIN === $attribute->id && true === $attribute->selected) {
|
||||
$roles[] = 'ROLE_ADMIN';
|
||||
$roles[] = 'ROLE_HOUSE_MANAGER';
|
||||
}
|
||||
if (self::BPN_CRM_ID_MANAGER === $attribute->id && true === $attribute->selected) {
|
||||
$roles[] = 'ROLE_MANAGER';
|
||||
|
||||
Reference in New Issue
Block a user