Problem/Motivation

With many menu items, admin_toolbar_links_access_filter_filter_non_accessible_links() calls AccessManager::checkNamedRoute() a lot and this method is quite slow (especially with no cache).
When using user 1, this is unnecessary because this user can access everything.

Proposed resolution

admin_toolbar_links_access_filter_filter_non_accessible_links() should return immediately if the current user is user 1.

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

prudloff created an issue. See original summary.

romainj made their first commit to this issue’s fork.

  • romainj committed 1496ae3 on 3.x authored by prudloff
    Issue #3248234 by prudloff: Access filter is unnecessary for admin user
    
romainj’s picture

Thanks @prudloff!

romainj’s picture

Status: Active » Fixed
romainj’s picture

Status: Fixed » Closed (fixed)