We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7180b2 + 57f0a8a commit f8a6373Copy full SHA for f8a6373
views/admin/index.php
@@ -117,7 +117,7 @@
117
'template' => '{switch} {resend_password} {update} {delete}',
118
'buttons' => [
119
'resend_password' => function ($url, $model, $key) {
120
- if (!$model->isAdmin) {
+ if ($model->isAdmin) {
121
return '
122
<a data-method="POST" data-confirm="' . Yii::t('user', 'Are you sure?') . '" href="' . Url::to(['resend-password', 'id' => $model->id]) . '">
123
<span title="' . Yii::t('user', 'Generate and send new password to user') . '" class="glyphicon glyphicon-envelope">
0 commit comments