From 5db11384e5bdbe8ee03cd213f0eca670718f91fa Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 11 Feb 2026 11:58:05 +0100 Subject: [PATCH] remove deprecated code --- src/Controller/UserController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index ee1808b..6c33412 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -366,7 +366,7 @@ class UserController extends AbstractController } } - #[Route('/organization/activateStatus/{id}', name: 'activate_organization', methods: ['GET', 'POST'])] + #[Route('/organization/activateStatus/{id}', name: 'activate_organization', methods: ['POST'])] public function activateStatusOrganization(int $id, Request $request): JsonResponse { $this->denyAccessUnlessGranted('ROLE_USER'); @@ -378,7 +378,7 @@ class UserController extends AbstractController throw $this->createNotFoundException(self::NOT_FOUND); } if ($this->userService->isAdminOfUser($user)) { - $orgId = $request->get('organizationId'); + $orgId = $request->request->get('organizationId'); $org = $this->organizationRepository->find($orgId); if (!$org) { $this->loggerService->logEntityNotFound('Organization', ['id' => $orgId], $actingUser->getUserIdentifier()); @@ -392,7 +392,7 @@ class UserController extends AbstractController 'organization_id' => $org->getId()], $actingUser->getUserIdentifier()); throw $this->createNotFoundException(self::NOT_FOUND); } - $status = $request->get('status'); + $status = $request->request->get('status'); if ($status === 'deactivate') { $uo->setIsActive(false); $this->userOrganizationAppService->deactivateAllUserOrganizationsAppLinks($uo);