summaryrefslogtreecommitdiffstats
path: root/frontends/php/queue.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-14 13:26:42 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-14 13:26:42 +0000
commit5348f67b28ed1da2539db6de7a11c605a5dc3a57 (patch)
tree4646832d5a7263dbe6818409d9ce9e9dff419008 /frontends/php/queue.php
parentc44eed92d3f3bcfc0efad6e18e31323f089a9ce6 (diff)
downloadzabbix-5348f67b28ed1da2539db6de7a11c605a5dc3a57.tar.gz
zabbix-5348f67b28ed1da2539db6de7a11c605a5dc3a57.tar.xz
zabbix-5348f67b28ed1da2539db6de7a11c605a5dc3a57.zip
- [DEV-142] added transactions to DB actions (beta) (Artem)
- [DEV-137] improvements in permission checks (Artem) - [DEV-137] changes in schema (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5619 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.php')
-rw-r--r--frontends/php/queue.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/queue.php b/frontends/php/queue.php
index 1ca91ef6..8ee50f35 100644
--- a/frontends/php/queue.php
+++ b/frontends/php/queue.php
@@ -38,6 +38,8 @@ include_once "include/page_header.php";
);
check_fields($fields);
+
+ $available_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY);
?>
<?php
@@ -80,9 +82,7 @@ include_once "include/page_header.php";
' AND i.nextcheck<'.$now.
" AND i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') ".
' AND i.value_type not in ('.ITEM_VALUE_TYPE_LOG.') '.
- ' AND h.hostid in ('.get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,get_current_nodeid()).')'.
-// ' AND h.hostid in ('.get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,$ZBX_LOCALNODEID).')'.
-// ' AND '.DBin_node('h.hostid', $ZBX_LOCALNODEID).
+ ' AND h.hostid in ('.$available_hosts.')'.
' AND '.DBin_node('h.hostid', get_current_nodeid()).
' order by i.nextcheck,h.host,i.description,i.key_');