diff --git a/interface/web/sites/aps_install_package.php b/interface/web/sites/aps_install_package.php index 8ba04efd2103d47358df6188f0c0ccdd1e5c6287..b70c976296fdc19dca975a34d4e06bb3c72f7cf2 100644 --- a/interface/web/sites/aps_install_package.php +++ b/interface/web/sites/aps_install_package.php @@ -86,7 +86,7 @@ if(isset($settings['error'])) $app->error($settings['error']); $domains = array(); $domain_for_user = ''; if(!$adminflag) $domain_for_user = "AND (sys_userid = '".$app->db->quote($_SESSION['s']['user']['userid'])."' - OR sys_groupid = '".$app->db->quote($_SESSION['s']['user']['userid'])."' )"; + OR sys_groupid = '".$app->db->quote($_SESSION['s']['user']['default_group'])."' )"; $domains_assoc = $app->db->queryAllRecords("SELECT domain FROM web_domain WHERE document_root != '' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y' ".$domain_for_user." ORDER BY domain;"); if(!empty($domains_assoc)) foreach($domains_assoc as $domain) $domains[] = $domain['domain'];