+if (MODE_PROJECTS_AND_TASKS != $user->getTrackingMode()) {
+ header('Location: feature_disabled.php');
+ exit();
+}
+// End of access checks.
+
+if($user->can('manage_tasks')) {
+ $active_tasks = ttGroupHelper::getActiveTasks();
+ $inactive_tasks = ttGroupHelper::getInactiveTasks();
+} else
+ $active_tasks = $user->getAssignedTasks();