Introduced PasswordField.class.php to keep things simple.
[timetracker.git] / task_edit.php
index bdd99b5..077c7c6 100644 (file)
@@ -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'));