X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_add.php;h=5ae5997faa4654db2e480162b3a173b81562f428;hb=21054f67875d0c0c947cc46fe438f407dbe94ee7;hp=c0526e51b152bea7927f8a74b8b52d297ab6eba3;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git diff --git a/client_add.php b/client_add.php index c0526e51..5ae5997f 100644 --- a/client_add.php +++ b/client_add.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(); +} $projects = ttTeamHelper::getActiveProjects($user->team_id);