[Security] Add back ROLE_PREVIOUS_ADMIN to impersonated user
This commit is contained in:
parent
daeb41adae
commit
64f4430cda
@ -149,7 +149,7 @@ class SwitchUserListener
|
||||
$this->userChecker->checkPostAuth($user);
|
||||
|
||||
$roles = $user->getRoles();
|
||||
|
||||
$roles[] = 'ROLE_PREVIOUS_ADMIN';
|
||||
$token = new SwitchUserToken($user, $user->getPassword(), $this->providerKey, $roles, $token);
|
||||
|
||||
if (null !== $this->dispatcher) {
|
||||
|
Reference in New Issue
Block a user