- Issue created by @gogowitsch
- Merge request !539Issue #3485240: Fix incorrect caching of nodes with access denied pages β (Open) created by gogowitsch
The patch caches separately for every user. Could it use the user.roles.role_name context instead?
- π©πͺGermany gogowitsch
Regarding Comment #5 π Incorrect caching of nodes with access denied pages Needs review : no, unfortunately not without more logic. The access rules for viewing webforms can be defined both per user and per role.
- First commit to issue fork.
- Status changed to Needs work
12 days ago 5:59pm 7 September 2025 - πΊπΈUnited States jrockowitz Brooklyn, NY
Let's see if the tests pass with additional user context.
- πΊπΈUnited States jrockowitz Brooklyn, NY
jrockowitz β changed the visibility of the branch 6.3.x to hidden.
- πΊπΈUnited States jrockowitz Brooklyn, NY
The patch caches separately for every user. Could it use the user.roles.role_name context instead?
If we added an optional
$operation
parameter to \Drupal\webform\Element\Webform::buildAccessDenied we could add cache context based on the webform's access rules. In most cased I think people are using roles and permissions.