fix colouring of user lines, show hidden users in yellow

This commit is contained in:
Uwe Steinmann 2023-10-13 19:32:07 +02:00
parent 00fe04a82f
commit dca43ea703

View File

@ -67,7 +67,7 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
<thead><tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('discspace'); ?></th><th><?php printMLText('authentication'); ?></th><th></th></tr></thead><tbody>
<?php
foreach ($allUsers as $currUser) {
echo "<tr".($currUser->isDisabled() ? " class=\"error\"" : "").">";
echo "<tr".($currUser->isDisabled() ? " class=\"table-error error\"" : ( $currUser->isHidden() ? " class=\"table-warning warning\"" : "")).">";
echo "<td>";
if ($currUser->hasImage())
print "<img width=\"100\" src=\"".$httproot . "out/out.UserImage.php?userid=".$currUser->getId()."\">";
@ -121,7 +121,7 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
printMLText("password_expired");
}
}
$sessions = $sessionmgr->getUserSessions($currUser);
$sessions = $sessionmgr->getUserSessions($currUser, 10);
if($sessions) {
foreach($sessions as $session) {
echo "<br />".getMLText('lastaccess').": ".getLongReadableDate($session->getLastAccess());