-if($user->canManageTeam()) {
- $active_projects = ttTeamHelper::getActiveProjects($user->team_id);
- $inactive_projects = ttTeamHelper::getInactiveProjects($user->team_id);
+$showFiles = $user->isPluginEnabled('at');
+
+if($user->can('manage_projects')) {
+ $active_projects = $showFiles ? ttGroupHelper::getActiveProjectsWithFiles() : ttGroupHelper::getActiveProjects();
+ $inactive_projects = $showFiles ? ttGroupHelper::getInactiveProjectsWithFiles() : ttGroupHelper::getInactiveProjects();