Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.1
Component:
node data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2008 at 00:12 UTC
Updated:
6 Feb 2012 at 11:11 UTC
With the Node: Publish or Admin filter set, I'm getting display results that include unpublished nodes for those nodes that have a blank entry for UserID. I don't see anything in my User Permissions that would cause this to happen.
I'm new at Drupal and don't want to go into a long song and dance if I'm just doing something wrong or this is expected behavior, but I'll be happy to elaborate as much as necessary if more info is needed to research a potential problem.
Comments
Comment #1
merlinofchaos commentedI assume that the user seeing this does NOT have the administer nodes permission?
Comment #2
eblues commentedYes... in a Views2 table, an unpublished node created by a guest (or manually editing the Authored By field to be blank) is visible by ALL visitors, including guests and standard authenticated users.
This issue came up while I was transferring data from an old static site to my Drupal database. In many cases I don't know who the original author was so I was just leaving the Author field blank and letting guest be assigned to those node entries.
I've done some custom themeing for my Views, so to be sure that wasn't where the problem was I created a new, very simple, standard View with just a couple of basic settings, and the problem still occurs.
Simply assigning a valid User Name to the node rectifies the condition, so my work-around was to create a dummy User Name to assign to all entries where the author is not known.
FYI, In my case I am using nodes extended with additional fields via CCK. Don't know if that's a factor or not.
Comment #3
manimejia commentedme too.
Using default taxonomy_term view, with only sort criteria modifications. The Node: Published or Admin filter returns unpublished nodes for users who are not logged in, and do not have Administer Nodes permission.
Great module. Views 2 ROCKS!!
We need this filter to work as well. It's a good one!
thanks,
M.M.
Comment #4
manimejia commentedFYI
All nodes on this site are authored on-site, by one of only two users. In this case the author was user 1.
M.M.
Comment #5
sfinerty commentedI'm having a similar issue just with using the 'taxonomy-term' view type. I switched to this view type when using a 'node' type view was causing duplicate terms to show in the results but now I can't filter out unpublished nodes.
Comment #6
dawehnerjust a question. Which nodes has no uid, afaik every node should have an author.
Comment #7
dawehnerDo you have nodes created by anonymous users?
And http://drupal.org/node/333172#comment-1845580
Comment #8
esmerel commentedNo updates for more than 30 days.
Comment #9
Helmut Neubauer commentedI'd like to reopen this issue because I've the same problem. Unpublished content is shown to guests and they have no right to see unpublished content.
Comment #10
elfcurry commentedMe too. I'm using 6.x-2.16 and just tried the comments_recent block but it shows unpublished comments to non-admins.