-
-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathm_2021-08-26-security_2.yaml
23 lines (20 loc) · 1.06 KB
/
m_2021-08-26-security_2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Add new keys (and underlying values)
file: packages/security.yaml
since: 4.3.0
add:
security:
role_hierarchy:
ROLE_DEVELOPER: [ROLE_ADMIN, ROLE_CAN_SWITCH_USER]
ROLE_ADMIN: [ROLE_CHIEF_EDITOR]
ROLE_CHIEF_EDITOR: [ROLE_EDITOR]
ROLE_EDITOR: [ROLE_USER]
ROLE_USER: []
access_control:
- { path: '^%bolt.backend_url%/login$', roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: '^%bolt.backend_url%/reset-password', roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: '^%bolt.backend_url%/api', roles: ADMIN_API_ACCESS }
- { path: '^/(%app_locales%)%bolt.backend_url%/api', roles: ADMIN_API_ACCESS }
- { path: '^%bolt.backend_url%/_trans', roles: ADMIN_TRANSLATE_ACCESS }
- { path: '^/(%app_locales%)%bolt.backend_url%/_trans', roles: ADMIN_TRANSLATE_ACCESS }
- { path: '^%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }
- { path: '^/(%app_locales%)%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }