View unpublished breaks access rules defined by Views

Created on 10 December 2014, over 9 years ago
Updated 12 March 2024, 4 months ago

Hello,

I found a bug due to View unpublished.

I needed a module to let a certain content type be viewed by anonymous.
This module let me do this by giving the right permission to anonymous user "My content type : View unpublished content"

The problem is that I have views set to display unpublished content type with a showcase style ... then displayed on certain pages as blocks.

Since I use View unpublished, i can tell that I can't display any unpublished content via views.
The rule access in views Ive set is "View published content". its cool because its the default permission. i want it to stay it like this. This way I can put my block wherever I want, and anonymous user can see its content because I choose in viwes to display Unpublished content. It means also that this content is still unreacheable for anonymous if accessed from its url.

Now to let this views' content be displayed to them, I have to give the m the right "View unpublished content", meaning also that they would have access to this content from its url.

For me its seems legit to let this content by displayed from a view, even if the permission isnt given from the permissions page

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France msizec

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