summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/perm.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-12 14:49:58 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-12 14:49:58 +0000
commit21ec4e8c5a6add1fa22ca6f2eb4330ea2411dc0f (patch)
treef3a62639ecbb0f2533e6123dac0d3c50e701b28a /frontends/php/include/perm.inc.php
parent44c297403e8be585e6dd89ccfee7990dad1feadf (diff)
downloadzabbix-21ec4e8c5a6add1fa22ca6f2eb4330ea2411dc0f.tar.gz
zabbix-21ec4e8c5a6add1fa22ca6f2eb4330ea2411dc0f.tar.xz
zabbix-21ec4e8c5a6add1fa22ca6f2eb4330ea2411dc0f.zip
- fixed permissions for hosts
git-svn-id: svn://svn.zabbix.com/trunk@3822 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/perm.inc.php')
-rw-r--r--frontends/php/include/perm.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/perm.inc.php b/frontends/php/include/perm.inc.php
index 7f6d1124..653b121f 100644
--- a/frontends/php/include/perm.inc.php
+++ b/frontends/php/include/perm.inc.php
@@ -169,7 +169,7 @@ COpt::counter_up('perm');
' from hosts h left join hosts_groups hg on hg.hostid=h.hostid '.
' left join groups g on g.groupid=hg.groupid '.
' left join rights r on r.id=g.groupid and r.type='.RESOURCE_TYPE_GROUP.
- ' left join users_groups ug on ug.userid='.$userid.
+ ' left join users_groups ug on ug.usrgrpid=r.groupid and ug.userid='.$userid.
' left join nodes n on '.DBid2nodeid('h.hostid').'=n.nodeid '.
$where.' group by h.hostid,n.nodeid,n.name,h.host,ug.userid '.
' order by n.name,n.nodeid, h.host, permission desc');