Refactoring in admin_group_delete.php and .tpl.
[timetracker.git] / mobile / users.php
index 18ad2e5..b531d7a 100644 (file)
@@ -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.