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