Skip to content

Commit 5baeb45

Browse files
author
jmontoya
committed
Minor - adding the "active" field in the remoting::client_get_sites_by_user function
1 parent c1ca538 commit 5baeb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ public function client_get_sites_by_user($session_id, $sys_userid, $sys_groupid)
21412141
$new_group[] = intval( $group_id);
21422142
}
21432143
$group_list = implode(',', $new_group);
2144-
$sql ="SELECT domain, domain_id, document_root FROM web_domain WHERE ( (sys_userid = $sys_userid AND sys_perm_user LIKE '%r%') OR (sys_groupid IN ($group_list) AND sys_perm_group LIKE '%r%') OR sys_perm_other LIKE '%r%') AND type = 'vhost'";
2144+
$sql ="SELECT domain, domain_id, document_root, active FROM web_domain WHERE ( (sys_userid = $sys_userid AND sys_perm_user LIKE '%r%') OR (sys_groupid IN ($group_list) AND sys_perm_group LIKE '%r%') OR sys_perm_other LIKE '%r%') AND type = 'vhost'";
21452145
$result = $app->db->queryAllRecords($sql);
21462146
if(isset($result)) {
21472147
return $result;

0 commit comments

Comments
 (0)