+if (!$user->isPluginEnabled('cl')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
+// End of access checks.
+
+if($user->can('manage_clients')) {
+ $active_clients = ttGroupHelper::getActiveClients(true);
+ $inactive_clients = ttGroupHelper::getInactiveClients(true);
+} else
+ $active_clients = $user->getAssignedClients();