From 302f60e722f73ecf91b7fb37f7d52fff4555df95 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 29 Sep 2021 12:14:58 +0200 Subject: [PATCH 1/2] addAddress: remove commented old method --- .../public/vuejs/Address/components/AddAddress.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue index 38afeae80..8f60ef1c1 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue @@ -705,20 +705,7 @@ export default { this.errorMsg.push(error); this.flag.loading = false; }); - }, - - /* - * Method just add closing pane to the callback method - * (get out step1 show pane, submit button) - closePaneAndCallbackSubmit(payload) - { - //this.initForm(); - //this.resetPane(); // because parent callback will cast afterLastPaneAction() - console.log('will call parent callback method', payload); - // callback props method from parent - this.addressChangedCallback(payload); } - */ } } From 86c5376cc27d366243a79cc7456839137f9b820a Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 29 Sep 2021 13:35:33 +0200 Subject: [PATCH 2/2] bypass ACL restriction fix response 500 when otf create new person --- .../ChillPersonBundle/Controller/PersonApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php index b3f4087eb..17635a8fa 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php @@ -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; }