diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-20 20:48:19 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-20 20:48:19 +0000 |
commit | dae2bdbb3b46021672bfc109d42b554c21f0d092 (patch) | |
tree | 8f9ed2d5becc458ae5faf4a61520be6e5ecd1fc1 /modules | |
parent | 63b3fea2b38d62da171cca6310adfd518fb2131e (diff) | |
download | brdo-dae2bdbb3b46021672bfc109d42b554c21f0d092.tar.gz brdo-dae2bdbb3b46021672bfc109d42b554c21f0d092.tar.bz2 |
#45988, Nodes with menu items bypass node permissions system
patch by chx
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node.module | 2 | ||||
-rw-r--r-- | modules/node/node.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 1dd230f34..3cd00a5e5 100644 --- a/modules/node.module +++ b/modules/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, 'access' => node_access('view', $node)); + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'), 'callback' => 'node_page', 'access' => node_access('update', $node), diff --git a/modules/node/node.module b/modules/node/node.module index 1dd230f34..3cd00a5e5 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, 'access' => node_access('view', $node)); + 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'), 'callback' => 'node_page', 'access' => node_access('update', $node), |