X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=clients.php;h=a299d3061a2780d23c9f65e25be268d64d485686;hb=f22a586b11af9c617fdc4241d3ffa0344d4d6a50;hp=6bf48097f93877be2753cd3e3f201f1f442d1e4f;hpb=e304b6c8564a6c3f2a3c6e68a0f5e9c7db817a65;p=timetracker.git diff --git a/clients.php b/clients.php index 6bf48097..a299d306 100644 --- a/clients.php +++ b/clients.php @@ -29,6 +29,7 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); +import('ttGroupHelper'); // Access checks. if (!(ttAccessAllowed('view_own_clients') || ttAccessAllowed('manage_clients'))) { @@ -39,10 +40,11 @@ if (!$user->isPluginEnabled('cl')) { header('Location: feature_disabled.php'); exit(); } +// End of access checks. if($user->can('manage_clients')) { - $active_clients = ttTeamHelper::getActiveClients($user->group_id, true); - $inactive_clients = ttTeamHelper::getInactiveClients($user->group_id, true); + $active_clients = ttGroupHelper::getActiveClients(true); + $inactive_clients = ttGroupHelper::getInactiveClients(true); } else $active_clients = $user->getAssignedClients();