mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	bypass ACL restriction
fix response 500 when otf create new person
This commit is contained in:
		| @@ -45,9 +45,9 @@ class PersonApiController extends ApiController | ||||
|         $person = parent::createEntity($action, $request); | ||||
|  | ||||
|         // 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)); | ||||
|         $person->setCenter($centers[0]); | ||||
|         $person->setCenter($centers[0]); */ | ||||
|  | ||||
|         return $person; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user