Node Access module does work with Content Moderation core module

Created on 31 May 2022, about 2 years ago
Updated 29 May 2024, 30 days ago

Problem/Motivation

The current site has three different languages and the Content Moderation core module is enabled and set up, Node Access module seems to work properly when there are no translations. Still, after adding translations then I started changing the states for the translations including the original node and I found out what happens next cases:

I tested this in latest version of Drupal 8 and 9 respectively, and on both versions the same bug.

Steps to reproduce

  1. Node created with original language(English) is set to Not published
  2. Translated node(Chinese) is set to Published
  3. Then you may head to the view pages for each one and both will show up, English and Chinese translations pages show up
  4. This should not be happening because Original Node(English) is not published so the shouldn't be showing up
  5. Chinese version shows up and this is fine so far

If you do the opposite stated in the steps above both translations pages won't show up, this means if you see the pages as an anonymous user you'll see You are not authorized to access this page.

Please see the attached file as an example of what I mean.

Proposed resolution

To get this fixed for the particular app, I uninstalled Node Access module and everything worked as expected after this.

Node Access module should be able to work together with Content Moderation code module.

Not sure if this issue was in the past, I found this Add language support to node access grants issue for D7

Thanks, in advance

🐛 Bug report
Status

Active

Version

2.0

Component

User interface

Created by

🇧🇴Bolivia alvarito75 Cochabamba

Live updates comments and jobs are added and updated live.
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.69.0 2024