// 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.