X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5be0f37534b82691a7707cde3aeb3d0b41fd71e5..a96c4f4e05e68e875ce088201ad011d6fc3e1e1c:/clients.php diff --git a/clients.php b/clients.php index ca83efd9..cc08f9a3 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'))) { @@ -72,8 +73,8 @@ if ($user->can('manage_subgroups')) { } if($user->can('manage_clients')) { - $active_clients = ttTeamHelper::getActiveClients($user->getGroup(), true); - $inactive_clients = ttTeamHelper::getInactiveClients($user->getGroup(), true); + $active_clients = ttGroupHelper::getActiveClients(true); + $inactive_clients = ttGroupHelper::getInactiveClients(true); } else $active_clients = $user->getAssignedClients();