summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-11 13:06:35 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-11 13:06:35 +0000
commit412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba (patch)
treedd9031b558ca80e00c862c95424d1dfe0297a92b /frontends/php/hosts.php
parent2d69d2f3070bc71ef09d064da117f69c14b8206d (diff)
downloadzabbix-412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba.tar.gz
zabbix-412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba.tar.xz
zabbix-412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba.zip
- [DEV-178] improved the permissions scheme (not finished in DM) (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5758 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
-rw-r--r--frontends/php/hosts.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index db63fe86..c1906b3c 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -232,7 +232,7 @@ include_once 'include/page_header.php';
}
}
else{
- if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
access_deny();
}
@@ -324,7 +324,7 @@ include_once 'include/page_header.php';
}
}
else{
- if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
access_deny();
}
@@ -520,7 +520,7 @@ include_once 'include/page_header.php';
$groupid = $_REQUEST["groupid"];
}
else {
- if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
access_deny();
DBstart();
@@ -720,7 +720,7 @@ include_once 'include/page_header.php';
$hostid = $_REQUEST["hostid"];
}
else {
- if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
access_deny();
$hostid = add_proxy($_REQUEST["host"], $hosts);