X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_delete.php;h=22ae9d4a61995a0750dade6171a3376f9d87962f;hb=725af06a89e5a7014dfdc9081222f313a58a6bb6;hp=b162ea844c9fc333dddca70282aa75102b37c17d;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git 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);