X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclients.php;h=d1a49f1e1d186132a05496c3bc14acef16215f15;hb=a8334a66f49ce583f575ec1b4a71c7d746a1bcdc;hp=d6ebbe40691f98f6d5c18d43d77a312f3133cb86;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git diff --git a/mobile/clients.php b/mobile/clients.php index d6ebbe40..d1a49f1e 100644 --- a/mobile/clients.php +++ b/mobile/clients.php @@ -31,13 +31,13 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +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', 'mobile/clients.tpl'); $smarty->display('mobile/index.tpl');