X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..aad5111d2e9f3329dc1002e897dd910a60946d6c:/task_edit.php diff --git a/task_edit.php b/task_edit.php index bdd99b5f..077c7c6b 100644 --- a/task_edit.php +++ b/task_edit.php @@ -32,7 +32,7 @@ import('ttTeamHelper'); import('ttTaskHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { header('Location: access_denied.php'); exit(); } @@ -106,7 +106,7 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.task_exists')); } } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.edit_task'));