From 5348f67b28ed1da2539db6de7a11c605a5dc3a57 Mon Sep 17 00:00:00 2001 From: artem Date: Mon, 14 Apr 2008 13:26:42 +0000 Subject: - [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 --- frontends/php/include/scripts.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/scripts.inc.php') diff --git a/frontends/php/include/scripts.inc.php b/frontends/php/include/scripts.inc.php index 3b53b932..037a15ef 100644 --- a/frontends/php/include/scripts.inc.php +++ b/frontends/php/include/scripts.inc.php @@ -111,8 +111,8 @@ function get_accessible_scripts_by_hosts($hosts){ $hosts = array('0' => hosts); } - $hosts_read_only = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,get_current_nodeid())); - $hosts_read_write = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,get_current_nodeid())); + $hosts_read_only = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY)); + $hosts_read_write = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE)); // initialize array foreach($hosts as $id => $hostid){ -- cgit