Problem/Motivation
The SetInlineBlockDependency
event subscriber fails to assign the correct access dependency to inline blocks when creating a pending revision of override section storage.
This creates a conflict between inline blocks, override layouts, paragraphs and content moderation, since the ERR formatter and paragraphs widget creates the following access dependency chain:
- Paragraphs entity checks host access (view/update).
- Inline block content checks the host, or "access dependency" for access.
- Node access should be granted, but the node is assigned to NULL, since the associated revision IDs are checked against the default entity, not the active entity.
Proposed resolution
For the purposes of access dependencies load the 'active' revision from the entity repository for the 'update' and 'delete' operation and load the canonical revision of the entity for all other operations.
Remaining tasks
Agree on an approach and tests.
User interface changes
None.
API changes
Method and constructor signatures only modified on @internal
classes.
Data model changes
None.