Skip to content

Commit 57f0a8a

Browse files
authored
show resend password link
resend password link was not visible bcz of typo mistake. It was allowing to non-admin ONLY. Now the link will be available for admin ONLY
1 parent b7180b2 commit 57f0a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/admin/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
'template' => '{switch} {resend_password} {update} {delete}',
118118
'buttons' => [
119119
'resend_password' => function ($url, $model, $key) {
120-
if (!$model->isAdmin) {
120+
if ($model->isAdmin) {
121121
return '
122122
<a data-method="POST" data-confirm="' . Yii::t('user', 'Are you sure?') . '" href="' . Url::to(['resend-password', 'id' => $model->id]) . '">
123123
<span title="' . Yii::t('user', 'Generate and send new password to user') . '" class="glyphicon glyphicon-envelope">

0 commit comments

Comments
 (0)