* Add permission judgment.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<?php
|
||||
echo html::a($this->createLink('admin', 'safe'), $lang->admin->safe->set);
|
||||
echo html::a($this->createLink('admin', 'checkWeak'), $lang->admin->safe->checkWeak, '', "class='active'");
|
||||
echo html::a($this->createLink('admin', 'resetPWDSetting'), $lang->admin->resetPWDSetting);
|
||||
if(common::hasPriv('admin', 'resetPWDSetting')) echo html::a($this->createLink('admin', 'resetPWDSetting'), $lang->admin->resetPWDSetting);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
echo html::a($this->createLink('admin', 'safe'), $lang->admin->safe->set);
|
||||
echo html::a($this->createLink('admin', 'checkWeak'), $lang->admin->safe->checkWeak);
|
||||
if(common::hasPriv('admin', 'checkWeak')) echo html::a($this->createLink('admin', 'checkWeak'), $lang->admin->safe->checkWeak);
|
||||
echo html::a($this->createLink('admin', 'resetPWDSetting'), $lang->admin->resetPWDSetting, '', "class='active'");
|
||||
?>
|
||||
</div>
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
echo html::a($this->createLink('admin', 'safe'), $lang->admin->safe->set, '', "class='active'");
|
||||
echo html::a($this->createLink('admin', 'checkWeak'), $lang->admin->safe->checkWeak);
|
||||
echo html::a($this->createLink('admin', 'resetPWDSetting'), $lang->admin->resetPWDSetting);
|
||||
if(common::hasPriv('admin', 'checkWeak')) echo html::a($this->createLink('admin', 'checkWeak'), $lang->admin->safe->checkWeak);
|
||||
if(common::hasPriv('admin', 'resetPWDSetting')) echo html::a($this->createLink('admin', 'resetPWDSetting'), $lang->admin->resetPWDSetting);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user