minor fixup

This commit is contained in:
tracer 2022-04-12 19:01:59 +02:00
parent ba9ff09b54
commit f3bf7dba76
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {