We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8123aff commit c0cdcb9Copy full SHA for c0cdcb9
src/EventListener/ExceptionListener.php
@@ -83,7 +83,7 @@ public function onKernelRequest(GetResponseEvent $event)
83
84
$token = $this->tokenStorage->getToken();
85
86
- if (null !== $token && $this->authorizationChecker->isGranted(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED)) {
+ if (null !== $token && $token->isAuthenticated() && $this->authorizationChecker->isGranted(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED)) {
87
$this->setUserValue($token->getUser());
88
89
$contextEvent = new SentryUserContextEvent($token);
0 commit comments