X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a8a4278a6a87c600835890a10c774dfdc58e930a..dd2ba64b1b4aaddacec2b9f6763c0ed7a35efc3b:/mobile/client_add.php diff --git a/mobile/client_add.php b/mobile/client_add.php index 134819bb..fc57853d 100644 --- a/mobile/client_add.php +++ b/mobile/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);