[*] группы переделаны в роли

This commit is contained in:
rsgrinko committed 2022-06-18 00:11:04 +03:00
1 parent f5c25db31e
commit 723ace2ae4
3 files changed
+15 -15

No files matched your search

+5 -5
View File
@@ -32,7 +32,7 @@
<th>Имя</th>
<th>E-Mail</th>
<th>Изображение</th>
<th>Группы</th>
<th>Роли</th>
<th>Токен</th>
<th>Был активен</th>
<th>Создан</th>
@@ -53,11 +53,11 @@
<td><?=$elUser['email'];?></td>
<td><?=$elUser['image'] ? '<img src="'.$elUser['image'].'" width="50px">' : ''; ?></td>
<td><?php
$arGroups = [];
foreach($userObject->getRolesObject()->getFullGroup() as $userGroup) {
$arGroups[] = $userGroup['name'] . ' (' . $userGroup['id'] . ')';
$arRoles = [];
foreach($userObject->getRolesObject()->getFullGroup() as $userRole) {
$arRoles[] = $userRole['name'] . ' (' . $userRole['id'] . ')';
}
echo implode(', ', $arGroups);
echo implode(', ', $arRoles);
?></td>
<td><?=$elUser['token'];?></td>
<td><?=date('d.m.Y H:i:s', $elUser['last_active']);?></td>