diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-11 13:06:35 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-11 13:06:35 +0000 |
| commit | 412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba (patch) | |
| tree | dd9031b558ca80e00c862c95424d1dfe0297a92b /frontends/php/include/page_header.php | |
| parent | 2d69d2f3070bc71ef09d064da117f69c14b8206d (diff) | |
| download | zabbix-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/include/page_header.php')
| -rw-r--r-- | frontends/php/include/page_header.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index 11cf0141..4640657f 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -254,11 +254,10 @@ COpt::profiling_start("page"); $deny = true; } - if(isset($sub['node_perm'])){ - if(0==count(get_accessible_nodes_by_user( + if(isset($sub['node_perm'])){ + if(0 == count(get_accessible_nodes_by_user( $USER_DETAILS, $sub['node_perm'], - null, PERM_RES_IDS_ARRAY, get_current_nodeid(false)))) { @@ -291,8 +290,10 @@ COpt::profiling_start("page"); if(isset($sub_pages['node_perm'])){ if ( 0 == count(get_accessible_nodes_by_user( - $USER_DETAILS,$sub_pages['node_perm'],null, - PERM_RES_IDS_ARRAY,get_current_nodeid(false)))) + $USER_DETAILS, + $sub_pages['node_perm'], + PERM_RES_IDS_ARRAY, + get_current_nodeid(false)))) { unset($sub['pages'][$id]); continue; |
