From f9758eff5beebb9ca000a720a14cd9a3375ae25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 10 Jun 2021 11:16:37 +0200 Subject: [PATCH] fix use of context into householdMember::move --- .../ChillPersonBundle/Controller/HouseholdMemberController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php index 0378e9413..da361abda 100644 --- a/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php +++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php @@ -47,6 +47,7 @@ class HouseholdMemberController extends ApiController } catch (Exception\InvalidArgumentException | Exception\UnexpectedValueException $e) { throw new BadRequestException("Deserialization error: {$e->getMessage()}", 45896, $e); } + // TODO ACL // // TODO validation @@ -58,7 +59,7 @@ class HouseholdMemberController extends ApiController } $em->flush(); - return $this->json($editor->getHousehold(), Response::HTTP_OK, ["groups" => ["read"]]); + return $this->json($editor->getHousehold(), Response::HTTP_OK, [], ["groups" => ["read"]]); } /**