X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_edit.php;h=b74fb31505fb37a420d61c8babc8d0f60f878f9d;hb=b462dba60a4686a99189cb9a6329c2cc99f5f7ac;hp=05203237f9a5bb0bcc794fc25aa008bd3f97dc96;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git diff --git a/client_edit.php b/client_edit.php index 05203237..b74fb315 100644 --- a/client_edit.php +++ b/client_edit.php @@ -31,11 +31,15 @@ import('form.Form'); import('ttClientHelper'); import('ttTeamHelper'); -// 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(); +} $cl_id = (int) $request->getParameter('id');