Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. role_hierarchy:
  2. ROLE_MANAGER: ROLE_USER
  3. ROLE_SUPER_ADMIN: [ROLE_MANAGER, ROLE_ALLOWED_TO_SWITCH]
  4.  
  5. switch_user: true
  6.  
  7. $this->get('security.authorization_checker')->isGranted('ROLE_PREVIOUS_ADMIN');
  8.  
  9. $user->getRoles();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement