By sgb9809 on
I would like a view to include results with content from unpublished nodes for anonymous users. I removed the published filter in my view and the results appear when I access the view as administrator, but it does not appear as an anonymous user. Is there a way to get this to work for anonymous users? I do not want anonymous users to have direct access to the unpublished node, only include field data as part of a view. Thanks!
Comments
Under "Advanced" settings
Under "Advanced" settings under "Other: Query settings" try checking "Disable SQL rewriting "
Thanks!
Thanks!
seriously thanks, this wasted
seriously thanks, I wasted a lot of time before finding your comment.
SOLVED
Solved by http://drupal.org/node/1460868#comment-6267822
checking the "Bypass content access control" permission for my editor role.
Security implications of "Bypass content access control"
@rajiv.singh
be aware of the security implications of your solution: editor users will get ALL control for ALL content!
Greetings!
This works because it
This works because it bypasses the node_access check, it is the best solution to this problem as it will only affect that particular view.
The solution about changing permissions has many security implications.
mucho thanks!!!
I've been pulling my hair out for over an hour trying to get the view to show!
Thanks its work for me. :-)
Thanks its work for me. :-)
This did not work for my
This did not work for my application.
Some details are as follows.
Im using a view to display rendered nodes from a node reference (field_select_a_hero). The referenced node contains several fields including an image field, and a collection field. Neither are displaying on the page. The only thing that appears on the page is the node title which is more odd. The node and view are working but for whatever reason, something is causing it to not render any fields.
The purpose is to create an unpublished page for client review thats gated with a login page.
any advice here?
Thanks
Have been searching for this for a while, and now it works .. Thank You
yes
thank you, I was looking for that for a long time !!
bien à vous, agence web - brussels
www.bienavous.be
Well?
Well here we are Drupal 8 and this method does not work.
I think there's a good reason
I think there's a good reason this does not work in D8. Unpublished content shouldn't be viewable for users w/o permission to view unpublished content.
No good reason
View Any Unpublished content does not work in D8. This is a bug.
8 years later...
8 years later...