X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tasks.php;h=2d310d0114e219b20c0f460910b24c353b068648;hb=2f5b2dc68a73954b497c7aaa3223be7f3db1d117;hp=5bc3fd45995136abce6d8e4d34aa39db6dd01f7b;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/tasks.php b/tasks.php index 5bc3fd45..2d310d01 100644 --- a/tasks.php +++ b/tasks.php @@ -30,11 +30,16 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('manage_tasks') || 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));