diff options
Diffstat (limited to 'frontends/php/include/page_header.php')
| -rw-r--r-- | frontends/php/include/page_header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index 0baf504a..8bd598e1 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -252,7 +252,7 @@ COpt::profiling_start("page"); { $deny = true; } - elseif($label=='admin' && (!in_array($USER_DETAILS['type'], array(USER_TYPE_SUPPER_ADMIN)) || + elseif($label=='admin' && (!in_array($USER_DETAILS['type'], array(USER_TYPE_SUPER_ADMIN)) || !in_array($ZBX_CURNODEID, get_accessible_nodes_by_user( $USER_DETAILS,PERM_READ_WRITE,null, PERM_RES_IDS_ARRAY,$ZBX_CURNODEID)))) @@ -260,7 +260,7 @@ COpt::profiling_start("page"); $deny = true; } elseif($label=='config' && ( - !in_array($USER_DETAILS['type'], array(USER_TYPE_SUPPER_ADMIN, USER_TYPE_ZABBIX_ADMIN)) || + !in_array($USER_DETAILS['type'], array(USER_TYPE_SUPER_ADMIN, USER_TYPE_ZABBIX_ADMIN)) || !in_array($ZBX_CURNODEID, get_accessible_nodes_by_user( $USER_DETAILS,PERM_READ_LIST,null, PERM_RES_IDS_ARRAY,$ZBX_CURNODEID)))) |
