X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/2178ec6d4efd6cad07b8f137415ecec207efcdad..b8704d54af8a3c22f1c5a9ebe2e58a28678b7442:/users.php diff --git a/users.php b/users.php index 8787844b..d20617bc 100644 --- a/users.php +++ b/users.php @@ -32,11 +32,12 @@ import('ttTeamHelper'); import('ttTimeHelper'); import('ttRoleHelper'); -// Access check. +// Access checks. if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Prepare a list of active users. if ($user->can('view_users')) @@ -51,7 +52,7 @@ if($user->can('manage_users')) { $inactive_users = $user->getUsers($options); } -// Check if the team is set to show indicators for uncompleted time entries. +// Check if the group is set to show indicators for uncompleted time entries. if ($user->uncompleted_indicators) { // Check each active user if they have an uncompleted time entry. foreach ($active_users as $key => $user) {