summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-23 20:01:56 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-23 20:01:56 +0000
commit21576021bfe440a0a02b0c179440f00e7182d321 (patch)
treeacc3e15e529a4d07827992561dc8053360f61e35 /modules/node/node.module
parent63406e5268e564acb83078eb3beb1abdfefee0ec (diff)
downloadbrdo-21576021bfe440a0a02b0c179440f00e7182d321.tar.gz
brdo-21576021bfe440a0a02b0c179440f00e7182d321.tar.bz2
- Patch #249546 by pwolanin: rip menu access inheritance -- was already committed to D6.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 73d5f334c..bfa6c8cda 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1459,6 +1459,7 @@ function node_menu() {
'title' => 'Add content type',
'page callback' => 'drupal_get_form',
'page arguments' => array('node_type_form'),
+ 'access arguments' => array('administer content types'),
'file' => 'content_types.inc',
'type' => MENU_LOCAL_TASK,
);
@@ -1497,6 +1498,7 @@ function node_menu() {
'title' => $type->name,
'page callback' => 'drupal_get_form',
'page arguments' => array('node_type_form', $type),
+ 'access arguments' => array('administer content types'),
'file' => 'content_types.inc',
'type' => MENU_CALLBACK,
);
@@ -1507,6 +1509,7 @@ function node_menu() {
$items['admin/content/node-type/' . $type_url_str . '/delete'] = array(
'title' => 'Delete',
'page arguments' => array('node_type_delete_confirm', $type),
+ 'access arguments' => array('administer content types'),
'file' => 'content_types.inc',
'type' => MENU_CALLBACK,
);
@@ -1557,6 +1560,8 @@ function node_menu() {
'load arguments' => array(3),
'page callback' => 'node_show',
'page arguments' => array(1, NULL, TRUE),
+ 'access callback' => '_node_revision_access',
+ 'access arguments' => array(1),
'type' => MENU_CALLBACK,
);
$items['node/%node/revisions/%/revert'] = array(