From 9d66d9b5f02825e48b9f5489246c441ce9df5145 Mon Sep 17 00:00:00 2001 From: Ante de Baas Date: Tue, 19 Nov 2024 19:48:47 +0100 Subject: [PATCH] small fixes --- .github/ISSUE_TEMPLATE.md | 3 +++ src/EventListener/KernelExceptionListener.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 772098f..60f19cc 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -19,6 +19,9 @@ A clear and concise description of what the bug is. - Yes - No +**What version are you running?** +- v1.xx.x + **Database used** - MySQL/MariaDB - PostgreSQL diff --git a/src/EventListener/KernelExceptionListener.php b/src/EventListener/KernelExceptionListener.php index af88a82..f897921 100644 --- a/src/EventListener/KernelExceptionListener.php +++ b/src/EventListener/KernelExceptionListener.php @@ -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: