update action logic
This commit is contained in:
parent
61e43dcd98
commit
cc93387154
|
|
@ -320,7 +320,7 @@ class UserController extends AbstractController
|
|||
#[Route('/userOrganizationEdit/{id}', name: 'organization_edit', requirements: ['id' => '\d+'], methods: ['GET', 'POST'])]
|
||||
public function userOrganizationEdit(int $id, Request $request, EntityManagerInterface $entityManager, Packages $packages): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_SUPER_ADMIN');
|
||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||
|
||||
// get the UsersOrganizations entity by ID and handle not found case same for user
|
||||
$userOrganization = $entityManager->getRepository(UsersOrganizations::class)->find($id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue