X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=clients.php;h=6ac6f5a1d32379005e0346ab588f2987dad1223e;hb=a490f47a3440b85efc7ef9c1795dd59dac60c83b;hp=89b5c4a377d059bed1d84cce7b7cbfe5431f4eba;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git diff --git a/clients.php b/clients.php index 89b5c4a3..6ac6f5a1 100644 --- a/clients.php +++ b/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));