X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a0dd058ab6007cfc6a72713215a7f4abb96f1b45..2352b1096ea3b8301f06d3e5b072022ae08a2f73:/client_delete.php diff --git a/client_delete.php b/client_delete.php index b162ea84..22ae9d4a 100644 --- a/client_delete.php +++ b/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);