Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP_UNAUTHORIZED on unauthorized message
Browse files Browse the repository at this point in the history
antedebaas committed Nov 14, 2024
1 parent ca924b4 commit 5352a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/KernelExceptionListener.php
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ public function onKernelException(ExceptionEvent $event)
case $exception instanceof \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
$response = new Response(
$this->templating->render('base/error.html.twig',['page' => array('title'=> 'Unauthorized'), 'message' => "Nope! Access denied!"]),
Response::HTTP_INTERNAL_SERVER_ERROR
Response::HTTP_UNAUTHORIZED
);
break;
default:

0 comments on commit 5352a1b

Please sign in to comment.