diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php index 70e85895..8013ac26 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php @@ -95,7 +95,7 @@ class ProfileController extends AbstractController $page['canchangelogin'] = is_capable(CAN_ADMINISTRATE, $operator); $page['title'] = getlocal('Operator details'); $page['menuid'] = ($op_id == $operator['operatorid']) ? 'profile' : 'operators'; - $page['requirePassword'] = (!$op_id || $page['needChangePassword']); + $page['requirePassword'] = (!$op_id); $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); diff --git a/src/mibew/styles/pages/default/templates_src/server_side/operator_edit.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/operator_edit.handlebars index 79edd6ce..28bc7ed1 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/operator_edit.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/operator_edit.handlebars @@ -22,7 +22,7 @@ {{csrfTokenInput}}
- {{#unless needChangePassword}}{{> _tabs}}{{/unless}} + {{> _tabs}}