X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/dd2ba64b1b4aaddacec2b9f6763c0ed7a35efc3b..75ef763b9bd7f515280a6d130e5ad81720d72156:/mobile/project_edit.php diff --git a/mobile/project_edit.php b/mobile/project_edit.php index 74454ec4..6adb475e 100644 --- a/mobile/project_edit.php +++ b/mobile/project_edit.php @@ -40,8 +40,13 @@ if (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->t header('Location: feature_disabled.php'); exit(); } - $cl_project_id = (int)$request->getParameter('id'); +$project = ttProjectHelper::get($cl_project_id); +if (!$project) { + header('Location: access_denied.php'); + exit(); +} +// End of access checks. $users = ttTeamHelper::getActiveUsers(); foreach ($users as $user_item) @@ -58,7 +63,6 @@ if ($request->isPost()) { $cl_users = $request->getParameter('users', array()); $cl_tasks = $request->getParameter('tasks', array()); } else { - $project = ttProjectHelper::get($cl_project_id); $cl_name = $project['name']; $cl_description = $project['description']; $cl_status = $project['status'];