Make "Node access" compatible with core modules

Created on 18 August 2019, over 5 years ago
Updated 11 November 2023, about 1 year ago

Problem/Motivation

The content access processor does not check for the core module Content Moderation permission "view any unpublished content". If this module is enabled and the permission is assigned, users will not see unpublished content created by other users.

I know there has been a similar discussion about a permission for view_unpublished Make "Node access" compatible with additional contrib modules but I think this is a different situation as this permission in question is part of Drupal core. Additionally, I don't think it's reasonable for Drupal core to create a processor plugin so that it works as expected with a contrib module.

Proposed resolution

Ensure the content access check considers the "view any unpublished content" permission.

Remaining tasks

  • Patch
  • Consider any other core module permissions that may be overlooked
  • Tests
🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Plugins

Created by

🇳🇿New Zealand Juterpillar

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024