summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-20 16:29:55 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-20 16:29:55 +0000
commite13799c9eb296837a4d6c1e4d31e9852444bb568 (patch)
tree58e9ba1217b6d9bfd4969a88629af9ec00e37333 /modules/node/node.module
parentdcfbcf5c71a120b77b14eb4058c43d3fe28299ae (diff)
downloadbrdo-e13799c9eb296837a4d6c1e4d31e9852444bb568.tar.gz
brdo-e13799c9eb296837a4d6c1e4d31e9852444bb568.tar.bz2
#45988, Nodes with menu items bypass node permissions system, patch by chx.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 3cd00a5e5..1dd230f34 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -946,7 +946,7 @@ function node_menu($may_cache) {
'access' => node_access('view', $node),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'node/'. arg(1) .'/view', 'title' => t('view'),
- 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10);
+ 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, 'access' => node_access('view', $node));
$items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'),
'callback' => 'node_page',
'access' => node_access('update', $node),