"When Grants for all users" are set to "view", unpublished nodes also become visible.

There is no way to hide the unpublished nodes, because when the "view" is unchecked, all nodes become invisible.

Comments

timofey’s picture

Title: Unpiblished nodes are visible » Unpublished nodes are visible
danielb’s picture

holy crap! This would be the case in all my drupal 7 node access modules then :/

danielb’s picture

Status: Active » Needs review

http://drupal.org/node/1294566

Give that a go, if it's good I'll get it into node access user reference etc...

danielb’s picture

I wonder if it's worth making it configurable whether to affect published nodes. Seems like it would have to be configured differently for each 'section' of options this module provides.
Maybe it should also consider the 'view own unpublished nodes' option?

timofey’s picture

#3 works like a charm!
It would be great to see an option to grant Node Access Node Reference and author an ability to publish/unpublish & view own unpublished nodes.

danielb’s picture

I don't think I can reasonably implement support for "view own unpublished nodes", unless someone can supply a patch.

I've just added a setting on whether it affects published only or both published/unpublished. That should do the trick.

danielb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.