Review of access logic

This commit is contained in:
Charles 2025-08-07 12:04:06 +02:00
parent 3f55eefddc
commit 9da1edaa92
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class UserController extends AbstractController
#[Route('/new', name: 'new', methods: ['GET', 'POST'])]
public function new(Request $request): Response
{
$this->denyAccessUnlessGranted("ROLE_ADMIN");
$form = $this->createForm(UserForm::class);
$organizationId = $request->query->get('organizationId');