Skip to content

Commit ddbcd66

Browse files
committed
Backport #78 to 0.8.x branch, cherry picked from commit c0cdcb9
1 parent c4f274c commit ddbcd66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/SentryBundle/EventListener/ExceptionListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function onKernelRequest(GetResponseEvent $event)
8888

8989
$token = $this->tokenStorage->getToken();
9090

91-
if (null !== $token && $this->authorizationChecker->isGranted(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED)) {
91+
if (null !== $token && $token->isAuthenticated() && $this->authorizationChecker->isGranted(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED)) {
9292
$this->setUserValue($token->getUser());
9393

9494
$contextEvent = new SentryUserContextEvent($token);

0 commit comments

Comments
 (0)