Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- role_hierarchy:
- ROLE_USER: ROLE_DO_ALMOST_NOTHING
- ROLE_EDITOR: [ ROLE_USER, ROLE_ALLOWED_TO_EDIT ]
- ROLE_CONTRIBUTOR: [ ROLE_EDITOR, ROLE_ALLOWED_TO_CONTRIBUTE ]
- ROLE_ADMIN: [ ROLE_CONTRIBUTOR ]
- ROLE_SUPER_ADMIN: [ ROLE_ADMIN, ROLE_ALLOWED_TO_DO_ANY_THING ]
- access_control:
- - { path: ^/admin, roles: ROLE_USER }
- - { path: ^/admin/editor, roles: ROLE_ADMIN }
- - { path: ^/editor, roles: ROLE_EDITOR }
- - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
- - { path: ^/super, roles: ROLE_SUPER_ADMIN }
- providers:
- in_memory:
- memory:
- users:
- person:
- password: password!
- roles: 'ROLE_USER'
- admin:
- password: password2
- roles: 'ROLE_ADMIN'
- - { path: ^/editor, roles: ROLE_EDITOR }
- - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
- - { path: ^/super, roles: ROLE_SUPER_ADMIN }
- - { path: ^/admin, roles: ROLE_USER }
- access_control:
- - { path: ^/admin/editor, roles: ROLE_ADMIN }
- - { path: ^/admin, roles: ROLE_USER }
- - { path: ^/editor, roles: ROLE_EDITOR }
- - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
- - { path: ^/super, roles: ROLE_SUPER_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement