update Role logic
This commit is contained in:
parent
790f77c430
commit
c757a841c5
|
|
@ -65,7 +65,7 @@ class UserController extends AbstractController
|
|||
#[Route('/{id}', name: 'show', requirements: ['id' => '\d+'], methods: ['GET'])]
|
||||
public function show(int $id, EntityManagerInterface $entityManager, Request $request): Response
|
||||
{
|
||||
if (!$this->isGranted('ROLE_SUPER_ADMIN')) {
|
||||
if (!$this->isGranted('ROLE_ADMIN')) {
|
||||
throw $this->createAccessDeniedException(self::ACCESS_DENIED);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue