X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=projects.php;h=5315c4f70015d9da5b79c28a1ee7cce0634f65a6;hb=e60508fb73602f118d17c06a9103532da05306c5;hp=d5f3bc12e9aaf85551d683b101d3e87db095d4fc;hpb=b401022733a9645ed701522585b2d57db936f5cc;p=timetracker.git diff --git a/projects.php b/projects.php index d5f3bc12..5315c4f7 100644 --- a/projects.php +++ b/projects.php @@ -30,11 +30,15 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('data_entry') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { +// Access checks. +if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { header('Location: access_denied.php'); exit(); } +if (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { + header('Location: feature_disabled.php'); + exit(); +} if($user->canManageTeam()) { $active_projects = ttTeamHelper::getActiveProjects($user->team_id); @@ -44,6 +48,6 @@ if($user->canManageTeam()) { $smarty->assign('active_projects', $active_projects); $smarty->assign('inactive_projects', $inactive_projects); -$smarty->assign('title', $i18n->getKey('title.projects')); +$smarty->assign('title', $i18n->get('title.projects')); $smarty->assign('content_page_name', 'projects.tpl'); $smarty->display('index.tpl');