X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=clients.php;h=6ac6f5a1d32379005e0346ab588f2987dad1223e;hb=2178ec6d4efd6cad07b8f137415ecec207efcdad;hp=f02d4b951c7fa558d2e714647b7e69eb17adbb52;hpb=3222579993343da856339c1474d9d4b9a752167e;p=timetracker.git diff --git a/clients.php b/clients.php index f02d4b95..6ac6f5a1 100644 --- a/clients.php +++ b/clients.php @@ -30,14 +30,18 @@ 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)); -$smarty->assign('title', $i18n->getKey('title.clients')); +$smarty->assign('title', $i18n->get('title.clients')); $smarty->assign('content_page_name', 'clients.tpl'); $smarty->display('index.tpl');