summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.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/config.php
parent2d69d2f3070bc71ef09d064da117f69c14b8206d (diff)
- [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/config.php')
-rw-r--r--frontends/php/config.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php
index e144dc09..7892aba9 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -96,8 +96,7 @@ include_once "include/page_header.php";
}
else {
/* ADD */
- 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();
}
@@ -128,7 +127,7 @@ include_once "include/page_header.php";
}
}
else if(isset($_REQUEST["save"]) && ($_REQUEST["config"]==8)){
- 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();
/* OTHER ACTIONS */
@@ -154,7 +153,7 @@ include_once "include/page_header.php";
}
}
else if(isset($_REQUEST["save"]) && ($_REQUEST["config"]==9)){
- 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();
/* OTHER ACTIONS */
@@ -172,7 +171,7 @@ include_once "include/page_header.php";
}
else if(isset($_REQUEST["save"])&&uint_in_array($_REQUEST["config"],array(0,5,7))){
- 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();
/* OTHER ACTIONS */
@@ -243,8 +242,7 @@ include_once "include/page_header.php";
$valuemapid = $_REQUEST["valuemapid"];
}
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();
}