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