summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Wittens2006-03-13 21:25:10 (GMT)
committer Steven Wittens2006-03-13 21:25:10 (GMT)
commit1e9862a24f2d6c0e9322a9fef42d55f9b507e559 (patch)
treeda871d63cc805e50d6cc55199ee22d99ad33bb77
parent390f5485588e035039cb0d323ebb60fc2febc62d (diff)
- sa-2006-001: Custom menu items are accessible to anyone
-rw-r--r--includes/menu.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 4309722..45a1dd0 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -803,7 +803,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, 'callback' => '');
+ $_menu['items'][$item->mid] = array('path' => $item->path, 'callback' => '');
}
else {
// Leave the old item around as a shortcut to this one.
@@ -815,7 +815,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, 'callback' => '');
+ $_menu['items'][$item->mid] = array('path' => $item->path, 'callback' => '');
if (!empty($item->path)) {
$_menu['path index'][$item->path] = $item->mid;
}