[HttpKernel] Fix AccessDecisionManagerInterface::decide() invocation in SwitchUserListener
This commit is contained in:
parent
04fd4194b5
commit
e414e06327
@ -122,7 +122,7 @@ class SwitchUserListener implements ListenerInterface
|
||||
throw new \LogicException(sprintf('You are already switched to "%s" user.', (string) $token));
|
||||
}
|
||||
|
||||
$this->accessDecisionManager->decide($token, null, array($this->role));
|
||||
$this->accessDecisionManager->decide($token, array($this->role));
|
||||
|
||||
$username = $request->get($this->usernameParameter);
|
||||
|
||||
|
Reference in New Issue
Block a user