Problem/Motivation
#3506444: UserThemeHooks::preprocessUsername() doesn't handle cacheability correctly introduces a new access operation for users that should also be ignored. We saw this pop up because it resulted in additional queries being run that didn't happen before. This operation should also be excluded from the checks.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork userprotect-3588357
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
Comment #3
berdirThis is a quickfix. It might make more sense to have a list of operations that this module *does* care about, I'm also confused about those special user_mail and similar operations. These do not exist in core, something like that should be handled through field access, not entity access.
Comment #5
megachrizThanks for the MR. I've scheduled the merge.
This was the first module that I ported to Drupal 8, back in 2014. It was in the first place a way for me to learn the new Drupal API's, so that may explain the less optimal choices.
If I'm not mistaken, the user fields to be protected weren't regular field API fields yet at the time - or at least not on the form code, so that could also be an explanation for the design choice.