diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-13 21:33:18 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-13 21:33:18 +0000 |
commit | 0539f5483bb9e0fb8d1f74be3d146ed95d4d0671 (patch) | |
tree | d7d365e83746672643735796cd0fb78d97608708 /includes/menu.inc | |
parent | 8495750c40f4d9f95c33fd17b0e234d247062726 (diff) | |
download | brdo-0539f5483bb9e0fb8d1f74be3d146ed95d4d0671.tar.gz brdo-0539f5483bb9e0fb8d1f74be3d146ed95d4d0671.tar.bz2 |
- sa-2006-001: Custom menu items are accessible to anyone
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 85511bff5..4f43f0afa 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1073,7 +1073,7 @@ function _menu_build() { else { // It has a permanent ID. Only replace with non-custom menu items. if ($item->type & MENU_CREATED_BY_ADMIN) { - $_menu['items'][$item->mid] = array('path' => $item->path, 'access' => TRUE); + $_menu['items'][$item->mid] = array('path' => $item->path); } else { // Leave the old item around as a shortcut to this one. @@ -1085,7 +1085,7 @@ function _menu_build() { else { // The path was not declared, so this is a custom item or an orphaned one. if ($item->type & MENU_CREATED_BY_ADMIN) { - $_menu['items'][$item->mid] = array('path' => $item->path, 'access' => TRUE); + $_menu['items'][$item->mid] = array('path' => $item->path); if (!empty($item->path)) { $_menu['path index'][$item->path] = $item->mid; } |