From f3bf7dba760b7d9b0247b216755f849e2c6ca543 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 12 Apr 2022 19:01:59 +0200 Subject: [PATCH] minor fixup --- src/Controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 4c2e5f5..0f9fef7 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -30,7 +30,7 @@ class UserController extends AbstractController if ($this->isGranted(attribute: 'ROLE_USER')) { $user = $this->getUser(); } else { - throw new AccessDeniedException('You need to be logged in.'); + throw new AccessDeniedException(message: 'You need to be logged in.'); } } else { if ($this->isGranted(attribute: 'ROLE_ADMIN')) {