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();
}
$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'));