X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fusers.php;h=d0b5d2189eeb33f4ede6ac55a0fb2584c48a6c76;hb=5970acff895c6773c700d7e218ad4a932040789d;hp=18ad2e5fa3f2fc55c67ebd8d46aad6da5c26faed;hpb=11bfec0ff88b649a934556e8b4812d65715c7509;p=timetracker.git diff --git a/mobile/users.php b/mobile/users.php index 18ad2e5f..d0b5d218 100644 --- a/mobile/users.php +++ b/mobile/users.php @@ -40,12 +40,12 @@ if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { // 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. +// 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) {