rm check for unexcepted property allowPasswordRecovery

This commit is contained in:
bscheshirwork
2018-09-20 16:50:05 +03:00
parent 1e4a001d8a
commit 37640d9fc3

View File

@ -152,7 +152,7 @@ $module = Yii::$app->getModule('user');
return null;
},
'reset' => function ($url, $model) use ($module) {
if(!$module->allowPasswordRecovery && $module->allowAdminPasswordRecovery) {
if($module->allowAdminPasswordRecovery) {
return Html::a(
'<span class="glyphicon glyphicon-flash"></span>',
['/user/admin/password-reset', 'id' => $model->id],