update Role logic

This commit is contained in:
Charles 2025-08-07 09:06:15 +02:00
parent 790f77c430
commit c757a841c5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}