diff options
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 8 |
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); |
