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

merlinofchaos’s picture

I assume that the user seeing this does NOT have the administer nodes permission?

eblues’s picture

Yes... 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.

manimejia’s picture

me 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.

manimejia’s picture

FYI

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.

sfinerty’s picture

I'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.

dawehner’s picture

Component: page displays » node data

just a question. Which nodes has no uid, afaik every node should have an author.

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.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have nodes created by anonymous users?

And http://drupal.org/node/333172#comment-1845580

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No updates for more than 30 days.

Helmut Neubauer’s picture

I'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.

elfcurry’s picture

I'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.

Me too. I'm using 6.x-2.16 and just tried the comments_recent block but it shows unpublished comments to non-admins.