remove deprecated code
This commit is contained in:
parent
2fce2dd8a5
commit
5db11384e5
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue