X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd0872d9e582113346fa1e93557f370286c5c9f2..dd2ba64b1b4aaddacec2b9f6763c0ed7a35efc3b:/mobile/task_edit.php diff --git a/mobile/task_edit.php b/mobile/task_edit.php index 2ba2cc55..346899dc 100644 --- a/mobile/task_edit.php +++ b/mobile/task_edit.php @@ -31,11 +31,15 @@ import('form.Form'); import('ttTeamHelper'); import('ttTaskHelper'); -// 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(); +} $cl_task_id = (int)$request->getParameter('id'); $projects = ttTeamHelper::getActiveProjects($user->team_id);