rm check for unexcepted property allowPasswordRecovery
This commit is contained in:
@ -152,7 +152,7 @@ $module = Yii::$app->getModule('user');
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
'reset' => function ($url, $model) use ($module) {
|
'reset' => function ($url, $model) use ($module) {
|
||||||
if(!$module->allowPasswordRecovery && $module->allowAdminPasswordRecovery) {
|
if($module->allowAdminPasswordRecovery) {
|
||||||
return Html::a(
|
return Html::a(
|
||||||
'<span class="glyphicon glyphicon-flash"></span>',
|
'<span class="glyphicon glyphicon-flash"></span>',
|
||||||
['/user/admin/password-reset', 'id' => $model->id],
|
['/user/admin/password-reset', 'id' => $model->id],
|
||||||
|
|||||||
Reference in New Issue
Block a user