[HttpKernel] Fix AccessDecisionManagerInterface::decide() invocation in SwitchUserListener

This commit is contained in:
Jeremy Mikola 2011-01-19 16:41:56 -05:00 committed by Fabien Potencier
parent 04fd4194b5
commit e414e06327

View File

@ -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);