X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=users.php;h=28a37227a523e445e88e3d09819fab87b9422421;hb=8d68ecdd7b1c45cb2a5cf592b8d504d7e4614911;hp=da5704018d32a0938e412c7015788478150dd906;hpb=845622e615e142555436c61425dfcef7c51e14a2;p=timetracker.git diff --git a/users.php b/users.php index da570401..28a37227 100644 --- a/users.php +++ b/users.php @@ -30,9 +30,10 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); import('ttTimeHelper'); +import('ttRoleHelper'); // Access check. -if (!ttAccessCheck(right_data_entry)) { +if (!ttAccessAllowed('view_users')) { header('Location: access_denied.php'); exit(); } @@ -45,7 +46,7 @@ if($user->canManageTeam()) { } // Check if the team is set to show indicators for uncompleted time entries. -if (UNCOMPLETED_INDICATORS == $user->uncompleted_indicators) { +if ($user->uncompleted_indicators) { // Check each active user if they have an uncompleted time entry. foreach ($active_users as $key => $user) { $active_users[$key]['has_uncompleted_entry'] = (bool) ttTimeHelper::getUncompleted($user['id']);