Skip to content

Commit 3225c76

Browse files
author
Till Brehm
committed
Fixed: FS#3340 - APS permissions bug
1 parent 5fc730e commit 3225c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/aps_install_package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
$domains = array();
8787
$domain_for_user = '';
8888
if(!$adminflag) $domain_for_user = "AND (sys_userid = '".$app->db->quote($_SESSION['s']['user']['userid'])."'
89-
OR sys_groupid = '".$app->db->quote($_SESSION['s']['user']['userid'])."' )";
89+
OR sys_groupid = '".$app->db->quote($_SESSION['s']['user']['default_group'])."' )";
9090
$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;");
9191
if(!empty($domains_assoc)) foreach($domains_assoc as $domain) $domains[] = $domain['domain'];
9292

0 commit comments

Comments
 (0)