summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/page_header.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/page_header.php')
-rw-r--r--frontends/php/include/page_header.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php
index 0424153f..ec92dc94 100644
--- a/frontends/php/include/page_header.php
+++ b/frontends/php/include/page_header.php
@@ -257,12 +257,7 @@ COpt::profiling_start("page");
}
if(isset($sub['node_perm'])){
- if(0 == count(get_accessible_nodes_by_user(
- $USER_DETAILS,
- $sub['node_perm'],
- PERM_RES_IDS_ARRAY,
- get_current_nodeid(false))))
- {
+ if(0 == count(get_accessible_nodes_by_user($USER_DETAILS,$sub['node_perm'],PERM_RES_IDS_ARRAY))){
$deny = true;
}
}
@@ -291,12 +286,7 @@ COpt::profiling_start("page");
}
if(isset($sub_pages['node_perm'])){
- if ( 0 == count(get_accessible_nodes_by_user(
- $USER_DETAILS,
- $sub_pages['node_perm'],
- PERM_RES_IDS_ARRAY,
- get_current_nodeid(false))))
- {
+ if ( 0 == count(get_accessible_nodes_by_user($USER_DETAILS,$sub_pages['node_perm'],PERM_RES_IDS_ARRAY))){
unset($sub['pages'][$id]);
continue;
}