Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- role_hierarchy:
- ROLE_MANAGER: ROLE_USER
- ROLE_SUPER_ADMIN: [ROLE_MANAGER, ROLE_ALLOWED_TO_SWITCH]
- switch_user: true
- $this->get('security.authorization_checker')->isGranted('ROLE_PREVIOUS_ADMIN');
- $user->getRoles();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement