X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclients.php;h=43e6848ae80ec8033427f1ad2752c36743473235;hb=926b8d63a0be596b0c95cb55f01addae410af50c;hp=aa6e6ad306e3741012bb28f446ef3ede2869c6f1;hpb=b401022733a9645ed701522585b2d57db936f5cc;p=timetracker.git diff --git a/mobile/clients.php b/mobile/clients.php index aa6e6ad3..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 (!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', 'mobile/clients.tpl'); $smarty->display('mobile/index.tpl');