The Access Unpublished module currently provides the ability to view nodes in draft or unpublished status for users with the appropriate permissions. However, this functionality does not extend to custom blocks (block_content
entities) that are in a draft state due to content moderation or workflow.
This limitation prevents editorial roles from being able to preview or interact with draft custom blocks, hindering content staging and review processes for these content elements.
It has been observed that draft or unpublished content and blocks in admin mode can be viewed using access tokens. However, this is not the case for draft blocks that do not have explicit permission restrictions applied to them. This suggests that the core access mechanism can function for blocks, but the Access Unpublished module is not consistently applying the necessary overrides for draft block_content
entities, particularly those without specific permission constraints.
The proposed resolution is to extend the Access Unpublished module's functionality to include block_content
entities. This would involve:
block_content
entities that are in a draft or unpublished state, regardless of whether they have explicit permission restrictions.This would allow users with the necessary permissions to preview and interact with draft custom blocks in a similar way to how they currently interact with draft nodes.
block_content
entities, ensuring it handles cases with and without specific block permissions.Potentially, new permissions might be added to the Access Unpublished module's configuration page to control access to draft/unpublished custom blocks.
It's possible that internal API changes within the Access Unpublished module might be necessary to accommodate the block_content
entity type.
No data model changes are anticipated.
Active
1.0
User interface
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.