Show group membership(s) in user-summary and user-list
This commit is contained in:
@@ -10,4 +10,8 @@
|
||||
<?php if (! empty($user['email'])): ?>
|
||||
<span><a href="mailto:<?= $this->text->e($user['email']) ?>"><?= $this->text->e($user['email']) ?></a></span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($this->user->getGroupNames($user['id'])) ): ?>
|
||||
<span><i class="fa fa-fw fa-group aria-hidden="true"></i> <?= $this->user->getGroupNames($user['id']) ?></span>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
</div>
|
||||
<ul class="panel">
|
||||
<li><?= t('Role:') ?> <strong><?= $this->user->getRoleName($user['role']) ?></strong></li>
|
||||
<li><?= t('Group membership(s):') ?> <strong><?= $this->user->getGroupNames($user['id']) ?></strong></li>
|
||||
<li><?= t('Account type:') ?> <strong><?= $user['is_ldap_user'] ? t('Remote') : t('Local') ?></strong></li>
|
||||
<li><?= $user['twofactor_activated'] == 1 ? t('Two factor authentication enabled') : t('Two factor authentication disabled') ?></li>
|
||||
<li><?= t('Number of failed login:') ?> <strong><?= $user['nb_failed_login'] ?></strong></li>
|
||||
|
||||
Reference in New Issue
Block a user