Unpublished Nodes not visible in Views

Created on 28 February 2023, over 1 year ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

In many cases I keep nodes unpublished because they should be inaccessible via their default path node/nid. I only want to expose them using views. Without nodeaccess installed this does work fine. But as soon as nodeaccess is enabled only published nodes are listed in views.

Steps to reproduce

- Create an "unpublished" node of any content type you like.
- Create a view that shows all nodes of that content type.
- Notice that the "unpublished" node you created is being shown by that view.
- Install nodeaccess.
- Notice that the "unpublished" node you created is NOT being shown by that view anymore.

Data model changes

Unpublished nodes should be shown in any view that does not explicitly filter for published nodes. (That's the default behavior without nodeaccess installed.)

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇦🇹Austria designcrs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024