X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclients.php;h=43e6848ae80ec8033427f1ad2752c36743473235;hb=926b8d63a0be596b0c95cb55f01addae410af50c;hp=d1a49f1e1d186132a05496c3bc14acef16215f15;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git diff --git a/mobile/clients.php b/mobile/clients.php index d1a49f1e..43e6848a 100644 --- a/mobile/clients.php +++ b/mobile/clients.php @@ -30,11 +30,15 @@ require_once('../initialize.php'); import('form.Form'); 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(); +} $smarty->assign('active_clients', ttTeamHelper::getActiveClients($user->team_id, true)); $smarty->assign('inactive_clients', ttTeamHelper::getInactiveClients($user->team_id, true));