X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclient_edit.php;h=ab8686509d1b0b1f24a90679588afcdad7667625;hb=fb5b1697fdd701ada644b7e25f22a93a0893107c;hp=b65ac99dc3128209c432f6b0d8a6eab378b9b3d1;hpb=9a1496f75c8f6cb5304968b2c0a377161af8f973;p=timetracker.git diff --git a/mobile/client_edit.php b/mobile/client_edit.php index b65ac99d..ab868650 100644 --- a/mobile/client_edit.php +++ b/mobile/client_edit.php @@ -40,8 +40,13 @@ if (!$user->isPluginEnabled('cl')) { header('Location: feature_disabled.php'); exit(); } - -$cl_id = (int) $request->getParameter('id'); +$cl_id = (int)$request->getParameter('id'); +$client = ttClientHelper::getClient($cl_id, true); +if (!$client) { + header('Location: access_denied.php'); + exit(); +} +// End of access checks. $projects = ttGroupHelper::getActiveProjects(); @@ -52,7 +57,6 @@ if ($request->isPost()) { $cl_status = $request->getParameter('status'); $cl_projects = $request->getParameter('projects'); } else { - $client = ttClientHelper::getClient($cl_id, true); $cl_name = $client['name']; $cl_address = $client['address']; $cl_tax = $client['tax'];