Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antedebaas committed Nov 19, 2024
1 parent 98b9e81 commit 9d66d9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/KernelExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9d66d9b

Please sign in to comment.