remove dead code

This commit is contained in:
Julien Fastré 2021-12-16 21:28:53 +01:00
parent 14aab637eb
commit 400ce3ac82

View File

@ -69,13 +69,4 @@ class PersonApiController extends ApiController
return $this->json(array_values($addresses), Response::HTTP_OK, [], ['groups' => ['read']]); return $this->json(array_values($addresses), Response::HTTP_OK, [], ['groups' => ['read']]);
} }
protected function createEntity(string $action, Request $request): object
{
return parent::createEntity($action, $request);
// TODO temporary hack to allow creation of person with fake center
/* $centers = $this->authorizationHelper->getReachableCenters($this->getUser(),
new Role(PersonVoter::CREATE));
$person->setCenter($centers[0]); */
}
} }