Problem/Motivation

When creating a link to a route that is not accessible to current user, (typically /user/login), the entry is not displayed in the administration user interface.

This issue feels very similar to an old one on the core: https://www.drupal.org/project/drupal/issues/2492513

Steps to reproduce

Create a menu link targeting /user/login.

Proposed resolution

Use menu_ui.menu_tree_manipulators:checkAccess (instead of menu.default_tree_manipulators:checkAccess) in \Drupal\bigmenu\BigMenuForm::getTree, to mimic what Drupal's core does in \Drupal\menu_ui\MenuForm::buildOverviewForm.

Remaining tasks

Fix source code.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork bigmenu-3586055

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pacproduct created an issue. See original summary.

pacproduct’s picture

Title: Not accessible menu entries are hidden from the UI » Non-accessible menu entries are hidden from the UI
Status: Active » Needs review
pacproduct’s picture

Title: Non-accessible menu entries are hidden from the UI » Non-accessible menu entries are hidden from the admin UI
Issue summary: View changes