X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..aad5111d2e9f3329dc1002e897dd910a60946d6c:/project_add.php diff --git a/project_add.php b/project_add.php index c2a30c5c..fe46a6bd 100644 --- a/project_add.php +++ b/project_add.php @@ -32,7 +32,7 @@ import('ttProjectHelper'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { header('Location: access_denied.php'); exit(); } @@ -86,7 +86,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.project_exists')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.projectForm.project_name.focus()"');