mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Do not use "needChangePassword" template var
This commit is contained in:
parent
5636b1ab3d
commit
14e709be37
@ -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);
|
||||
|
@ -22,7 +22,7 @@
|
||||
{{csrfTokenInput}}
|
||||
|
||||
<div>
|
||||
{{#unless needChangePassword}}{{> _tabs}}{{/unless}}
|
||||
{{> _tabs}}
|
||||
|
||||
<div class="mform">
|
||||
<div class="formtop">
|
||||
|
Loading…
Reference in New Issue
Block a user