mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
bypass ACL restriction
fix response 500 when otf create new person
This commit is contained in:
parent
302f60e722
commit
86c5376cc2
@ -45,9 +45,9 @@ class PersonApiController extends ApiController
|
|||||||
$person = parent::createEntity($action, $request);
|
$person = parent::createEntity($action, $request);
|
||||||
|
|
||||||
// TODO temporary hack to allow creation of person with fake center
|
// TODO temporary hack to allow creation of person with fake center
|
||||||
$centers = $this->authorizationHelper->getReachableCenters($this->getUser(),
|
/* $centers = $this->authorizationHelper->getReachableCenters($this->getUser(),
|
||||||
new Role(PersonVoter::CREATE));
|
new Role(PersonVoter::CREATE));
|
||||||
$person->setCenter($centers[0]);
|
$person->setCenter($centers[0]); */
|
||||||
|
|
||||||
return $person;
|
return $person;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user