update PR based on the feedback
This commit is contained in:
parent
564fb8c320
commit
aac860b118
|
@ -43,10 +43,10 @@ use Icinga\Data\Selectable;
|
|||
<tr>
|
||||
<th><?= $this->translate('Role Memberships'); ?></th>
|
||||
<td>
|
||||
<?php $roleObj = $userObj->getRoles(); ?>
|
||||
<?php if (! empty($roleObj)): ?>
|
||||
<?php $roles = $userObj->getRoles(); ?>
|
||||
<?php if (! empty($roles)): ?>
|
||||
<ul class="role-memberships">
|
||||
<?php foreach($roleObj as $role): ?>
|
||||
<?php foreach($roles as $role): ?>
|
||||
<li>
|
||||
<?php if ($this->allowedToEditRoles): ?>
|
||||
<?= $this->qlink(
|
||||
|
@ -54,7 +54,8 @@ use Icinga\Data\Selectable;
|
|||
'role/edit',
|
||||
['role' => $role->getName()],
|
||||
['title' => sprintf($this->translate('Edit role %s'), $role->getName())]
|
||||
) ?>
|
||||
);
|
||||
$role === end($roles) ? print '' : print ', '; ?>
|
||||
<?php else: ?>
|
||||
<?= $role->getName() ?>
|
||||
<?php endif ?>
|
||||
|
|
Loading…
Reference in New Issue