X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cec2e1b0941c16302bedad01bfb8455baf13e0f8..b5b2801290794632bba7af2cdddf9d4a8a96c29c:/project_files.php diff --git a/project_files.php b/project_files.php new file mode 100644 index 00000000..baec9aa2 --- /dev/null +++ b/project_files.php @@ -0,0 +1,55 @@ +getTrackingMode() && MODE_PROJECTS_AND_TASKS != $user->getTrackingMode()) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. + +if($user->can('manage_projects')) { + $active_projects = ttGroupHelper::getActiveProjects(); + $inactive_projects = ttGroupHelper::getInactiveProjects(); +} else + $active_projects = $user->getAssignedProjects(); + +$smarty->assign('active_projects', $active_projects); +$smarty->assign('inactive_projects', $inactive_projects); +$smarty->assign('show_files', $user->isPluginEnabled('at')); +$smarty->assign('title', $i18n->get('title.project_files')); +$smarty->assign('content_page_name', 'projects.tpl'); +$smarty->display('index.tpl');