Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. role_hierarchy:
  2. ROLE_USER: ROLE_DO_ALMOST_NOTHING
  3. ROLE_EDITOR: [ ROLE_USER, ROLE_ALLOWED_TO_EDIT ]
  4. ROLE_CONTRIBUTOR: [ ROLE_EDITOR, ROLE_ALLOWED_TO_CONTRIBUTE ]
  5. ROLE_ADMIN: [ ROLE_CONTRIBUTOR ]
  6. ROLE_SUPER_ADMIN: [ ROLE_ADMIN, ROLE_ALLOWED_TO_DO_ANY_THING ]
  7.  
  8. access_control:
  9. - { path: ^/admin, roles: ROLE_USER }
  10. - { path: ^/admin/editor, roles: ROLE_ADMIN }
  11. - { path: ^/editor, roles: ROLE_EDITOR }
  12. - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
  13. - { path: ^/super, roles: ROLE_SUPER_ADMIN }
  14.  
  15. providers:
  16. in_memory:
  17. memory:
  18. users:
  19. person:
  20. password: password!
  21. roles: 'ROLE_USER'
  22. admin:
  23. password: password2
  24. roles: 'ROLE_ADMIN'
  25.  
  26. - { path: ^/editor, roles: ROLE_EDITOR }
  27. - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
  28. - { path: ^/super, roles: ROLE_SUPER_ADMIN }
  29.  
  30. - { path: ^/admin, roles: ROLE_USER }
  31.  
  32. access_control:
  33. - { path: ^/admin/editor, roles: ROLE_ADMIN }
  34. - { path: ^/admin, roles: ROLE_USER }
  35. - { path: ^/editor, roles: ROLE_EDITOR }
  36. - { path: ^/contributor, roles: ROLE_CONTRIBUTOR }
  37. - { path: ^/super, roles: ROLE_SUPER_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement