I am using this module with a block_content consumer form https://www.drupal.org/project/adva/issues/3020967, leveraging contextual-links for quick-edit.

Sometimes even the user does not have edit access to a block, but the 'Edit' link in contextual links is still showing, and it is caused by an old user.permissions cache context.

Proposed Solution

Invalid user:uid cache tag in user.permissions cache context on access records rebuilding.

See core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php

Comments

weynhamz created an issue. See original summary.

jantoine’s picture

Status: Active » Closed (duplicate)

@weynhamz,

There are known caching issues with Advanced Access' documented in #2999132: The user.advanced_access cache context doesn't exist. and #3018448: Integrate the cache context with the hook_query_TAG_alter() implementation. This module doesn't actually do any building of permissions itself. It simply defines an Advanced Access Provider, so any caching issues would be with the Advanced Access module. Closing this as a duplicate of the other issues already opened against the Advanced Access module.