View Unpublished
For pieces of content with at least one unpublished translation, the module grants every user with the access content access right view access to the published translations of that piece of content. Anyone with no login could view published translations they should not be able to see. They could not alter any translations.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youThe site must be multilingual, a piece of content must have both unpublished and published translations, and another access module must restrict view access to the published translations.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate View Unpublished to 8.x-1.5.
For developers: what the fix changed
Implements `hook_node_access_records_alter()` in `view_unpublished.module` to remove the `view_unpublished_published_content` grant if other modules provide grant records for the node, preventing it from overriding their access restrictions.
Also in this release Adds a post-update hook to rebuild node access and includes automated tests.
view_unpublished.module+26 −0 fixview_unpublished.post_update.php+28 −0