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')) {
|
if ($this->isGranted(attribute: 'ROLE_USER')) {
|
||||||
$user = $this->getUser();
|
$user = $this->getUser();
|
||||||
} else {
|
} else {
|
||||||
throw new AccessDeniedException('You need to be logged in.');
|
throw new AccessDeniedException(message: 'You need to be logged in.');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($this->isGranted(attribute: 'ROLE_ADMIN')) {
|
if ($this->isGranted(attribute: 'ROLE_ADMIN')) {
|
||||||
|
|
Loading…
Reference in New Issue