X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclient_edit.php;h=eb85922901956bf3ea8289f58d8d7f0385ff575a;hb=e02d7592b0556895e35f4d028939197c132f6b09;hp=e4bc9b22b1fcda08a6ba5cf8b005b2981d9373cc;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git diff --git a/mobile/client_edit.php b/mobile/client_edit.php index e4bc9b22..eb859229 100644 --- a/mobile/client_edit.php +++ b/mobile/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');