X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/dd2ba64b1b4aaddacec2b9f6763c0ed7a35efc3b..de79fff47f10297d7df2edf34aa6420de71cde5b:/mobile/users.php diff --git a/mobile/users.php b/mobile/users.php index 67654376..b531d7a4 100644 --- a/mobile/users.php +++ b/mobile/users.php @@ -31,17 +31,18 @@ import('form.Form'); import('ttTeamHelper'); import('ttTimeHelper'); -// Access check. +// Access checks. if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Get users. $active_users = ttTeamHelper::getActiveUsers(array('getAllFields'=>true)); -if($user->canManageTeam()) { +if($user->can('manage_users')) { $can_delete_manager = (1 == count($active_users)); - $inactive_users = ttTeamHelper::getInactiveUsers($user->team_id, true); + $inactive_users = ttTeamHelper::getInactiveUsers($user->group_id, true); } // Check if the team is set to show indicators for uncompleted time entries.