Problem/Motivation
userprotect_user_access() is quite expensive and there is afaik nothing in the module that would limit view access in any way, so lets add an early return to avoid the config entity query lookup for every user.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | userprotect-view-acces-3162846-2.patch | 632 bytes | berdir |
Comments
Comment #2
berdirComment #4
megachrizThanks for the patch! I added a comment to the code of why we are returning early and committed that.