X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..c3c78e060ef21bf5f4f2fe60fb1202da2489374b:/mobile/client_delete.php diff --git a/mobile/client_delete.php b/mobile/client_delete.php index e23cd026..154d8930 100644 --- a/mobile/client_delete.php +++ b/mobile/client_delete.php @@ -30,11 +30,15 @@ require_once('../initialize.php'); import('form.Form'); import('ttClientHelper'); -// Access check. -if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) { +// Access checks. +if (!ttAccessAllowed('manage_clients')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('cl')) { + header('Location: feature_disabled.php'); + exit(); +} $id = (int)$request->getParameter('id'); $client = ttClientHelper::getClient($id);