]> wagnertech.de Git - timetracker.git/blobdiff - clients.php
A bit more refactoring of clients.php for subgroups.
[timetracker.git] / clients.php
index ca83efd9055caa6b1e791f9018cd63d83cda2e9d..cc08f9a3c682ccf910127c73c93fbcf24957d2e6 100644 (file)
@@ -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();