On users list grid, show Auth mode badge only for sys admins #6031 (#6032)

This commit is contained in:
Marc Farré 2023-01-10 16:04:48 +01:00 committed by GitHub
parent cf44e7af12
commit 3771d0bb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,3 +9,4 @@ HumHub Changelog (DEVELOP)
- Enh #6006: Fix activity settings test
- Fix #6018: Disable profile fields textarea and checkbox list when they are not editable
- Ehn #6017: Hide Password Tab in administration for LDAP users
- Enh #6031: On users list grid, show Auth mode badge only for sys admins

View File

@ -43,7 +43,7 @@ class DisplayNameColumn extends BaseColumn
$user = $this->getUser($model);
$badge = '';
if ($user->auth_mode !== 'local') {
if ($user->auth_mode !== 'local' && Yii::$app->user->isAdmin()) {
$badge = '&nbsp;<span class="badge">'.$user->auth_mode.'</span>';
}
return '<div>' . Html::encode($user->displayName) . $badge . '<br> ' .