X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/11bfec0ff88b649a934556e8b4812d65715c7509..2df50105b46a5cbd6493271b137a136ccfe2ea5a:/mobile/users.php diff --git a/mobile/users.php b/mobile/users.php index 18ad2e5f..b531d7a4 100644 --- a/mobile/users.php +++ b/mobile/users.php @@ -40,9 +40,9 @@ 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.