- πΊπΈUnited States bkosborne New Jersey, USA
If we get π User can't reference unpublished content even when they have access to it Needs work in core, I don't think this issue will be necessary anymore either.
At present it is possible to grant users the permission to view any unpublished content when content moderation module is enabled.
However the default node entity reference selection handler excludes users from viewing/referencing unpublished items if the user does not have the 'bypass node access' permission.
Add a new entity reference selection handler for node entities to content_moderation module that takes into account the 'view any unpublished content' permission.
Add tests to verify that users with that permission but without bypass node access permission can reference unpublished content.
Verify that adding this handler to content moderation does not break if node module is disabled, as content moderation does not have a hard dependency on node module.
If it does, it might be that we need an alter hook to change the class used, replacing the default NodeSelection class.
The lot
None
None
Postponed
11.0 π₯
content_moderation.module
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
If we get π User can't reference unpublished content even when they have access to it Needs work in core, I don't think this issue will be necessary anymore either.