X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..45c855269d952873285f7a835e82fc2b3eff3971:/clients.php diff --git a/clients.php b/clients.php index 89b5c4a3..177bd61e 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('active_clients', ttTeamHelper::getActiveClients($user->group_id, true)); +$smarty->assign('inactive_clients', ttTeamHelper::getInactiveClients($user->group_id, true)); $smarty->assign('title', $i18n->get('title.clients')); $smarty->assign('content_page_name', 'clients.tpl'); $smarty->display('index.tpl');