Problem/Motivation
When a site has, assume, different 100 menus, /node/add/page can be slowly even if "Administer menus and menu links" permission doen't enabled.
Steps to reproduce
* Create quite a lot of menus, in my case about 250
* Enable "Available menus" for content type and choose all
* Open /node/add/page
Proposed resolution
Check access before generate a list.
User interface changes
No.
API changes
No.
Data model changes
No.
Issue fork drupal-3250678
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:
- 3250678-prevent-checking-available
changes, plain diff MR !1436
Comments
Comment #3
larowlanDoesn't this cause data loss if the field value isn't present?
Comment #9
smustgrave commentedTriaging my issue queue and this one came up
Also have the same concern as mentioned in #3, the menu key would not be saved to the entity with this change. But also the code has changed since this MR and we now call getMenuLinkContentAccess() so is this still valid?
Comment #11
smustgrave commentedSince there's been no follow up going to close out. This does feel like it could cause larger problems. Will save credit for the MR though.