Resolve #3506444 "Preprocess username caching"
1 unresolved thread
Closes #3506444
Merge request reports
Activity
added 1 commit
- 30cb18c7 - Create new "view linked label" entity and update tests.
66 67 } 67 68 } 68 69 70 if ($operation === 'view linked label') { Viewing labels is not what's causing the problem here. It's that some labels can have a link to the entity they represent. That's where the access check comes in and where we really shouldn't be varying by user as the end result would be inconsistent anyway.
The 'view label' operation always returns TRUE for users. But we can't use that because the 'username' theme hook tries to add in links in template_preprocess_username().
If we could differentiate between where we want a linked username and where we simply want a username, we could switch between using 'view label' and 'view linked label' accordingly.
added 312 commits
Toggle commit list
Please register or sign in to reply