From 1f9a9b7a844d891b3793b8c8c62980802d309348 Mon Sep 17 00:00:00 2001 From: konradoboza Date: Thu, 20 Jun 2024 15:17:54 +0200 Subject: [PATCH] IBX-8322: Fixed lack of redirections to last visited pages after successful authentication --- .../Authentication/EventSubscriber/AccessDeniedSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/AccessDeniedSubscriber.php b/src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/AccessDeniedSubscriber.php index 892ce86ebc..c3c18c995f 100644 --- a/src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/AccessDeniedSubscriber.php +++ b/src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/AccessDeniedSubscriber.php @@ -35,7 +35,7 @@ public function onKernelException(ExceptionEvent $event): void { $exception = $event->getThrowable()->getPrevious(); - if ($exception instanceof IbexaRepositoryException) { + if ($exception === null || $exception instanceof IbexaRepositoryException) { return; }