X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclients.php;h=43e6848ae80ec8033427f1ad2752c36743473235;hb=e0ec0364d761e2dff5a7c0032f04ec1dbae50980;hp=6312c2dd4e3c207115c5b2ec9ec52364d6528106;hpb=5fdf8659516ad2b07458deba8eda234e8e07c554;p=timetracker.git diff --git a/mobile/clients.php b/mobile/clients.php index 6312c2dd..43e6848a 100644 --- a/mobile/clients.php +++ b/mobile/clients.php @@ -30,14 +30,18 @@ require_once('../initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessCheck(right_manage_team) || !$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', 'mobile/clients.tpl'); $smarty->display('mobile/index.tpl');