Do not use "needChangePassword" template var

This commit is contained in:
Dmitriy Simushev 2014-07-14 10:25:59 +00:00
parent 5636b1ab3d
commit 14e709be37
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -22,7 +22,7 @@
{{csrfTokenInput}}
<div>
{{#unless needChangePassword}}{{> _tabs}}{{/unless}}
{{> _tabs}}
<div class="mform">
<div class="formtop">