From 7838d9745d9579be2af96b99b5d35e781f60ddfb Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 12 Jan 2017 12:08:45 +0200 Subject: [PATCH] add local config --- src/app/frontend/controllers/CustomerController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/frontend/controllers/CustomerController.php b/src/app/frontend/controllers/CustomerController.php index b007b66..8318c11 100644 --- a/src/app/frontend/controllers/CustomerController.php +++ b/src/app/frontend/controllers/CustomerController.php @@ -414,7 +414,10 @@ class CustomerController extends \controllers\ControllerBase // OK // redirect $this->flash->success($this->languages->getTranslation()->_("successfully_edited_your_password")); - return $this->response->redirect([ 'for' => 'cabinet', 'language' => $this->lang_name ]); + if($this->session->get('special_users_id') != null) { + return $this->response->redirect(['for' => 'personal_data', 'language' => $this->lang_name]); + } + return $this->response->redirect(['for' => 'cabinet', 'language' => $this->lang_name]); break; case 0: -- libgit2 0.21.4