X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..725d5bd358b2ee204e4298d2634d1a0f9a62654b:/task_add.php diff --git a/task_add.php b/task_add.php index 15e8e7f5..5ef549bb 100644 --- a/task_add.php +++ b/task_add.php @@ -33,7 +33,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(); } @@ -75,7 +75,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.task_exists')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.taskForm.name.focus()"');