X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=clients.php;h=89b5c4a377d059bed1d84cce7b7cbfe5431f4eba;hb=2ffa361a7610cbd1334754da314e4783226df689;hp=0a027b8bd1a5ad613d7bf498ddaefd9dfe0a89a6;hpb=5fdf8659516ad2b07458deba8eda234e8e07c554;p=timetracker.git diff --git a/clients.php b/clients.php index 0a027b8b..89b5c4a3 100644 --- a/clients.php +++ b/clients.php @@ -31,13 +31,13 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) { +if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) { header('Location: access_denied.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');