X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tasks.php;h=2d310d0114e219b20c0f460910b24c353b068648;hb=a575a9147976a06263d8a7eae006d6ba3372446e;hp=3ea2faaa0fb6dec831e03a7af2bd32f9aa013801;hpb=3ad790a3d4bc23cb23f7ee072171ca6ef987eb56;p=timetracker.git diff --git a/tasks.php b/tasks.php index 3ea2faaa..2d310d01 100644 --- a/tasks.php +++ b/tasks.php @@ -30,14 +30,19 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessCheck(right_manage_team) || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { +// Access checks. +if (!ttAccessAllowed('manage_tasks')) { header('Location: access_denied.php'); exit(); } +if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. $smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->team_id)); $smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->team_id)); -$smarty->assign('title', $i18n->getKey('title.tasks')); +$smarty->assign('title', $i18n->get('title.tasks')); $smarty->assign('content_page_name', 'tasks.tpl'); $smarty->display('index.tpl');