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); } - */ } } 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; }