minor fixup
This commit is contained in:
parent
ba9ff09b54
commit
f3bf7dba76
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user