diff options
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 4f43f0afa..69fa748fa 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1125,7 +1125,10 @@ function _menu_item_is_accessible($mid) { $path = substr($path, 0, strrpos($path, '/')); } if (empty($path)) { - return FALSE; + // Items without any access attribute up the chain are denied, unless they + // were created by the admin. They most likely point to non-Drupal directories + // or to an external URL and should be allowed. + return $menu['items'][$mid]['type'] & MENU_CREATED_BY_ADMIN; } return $menu['items'][$menu['path index'][$path]]['access']; } |