You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Lookup a client's group + all groups he is reselling.
232
+
*
233
+
* @return string Comma separated list of groupid's
234
+
*/
235
+
functionclientid_to_groups_list($client_id) {
236
+
global$app;
237
+
238
+
if ($client_id != null) {
239
+
// Get the clients groupid, and incase it's a reseller the groupid's of it's clients.
240
+
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS groups FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
0 commit comments