Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A content type containing a nodereference field allows non-privileged users to see unpublished nodes in the drop-down select for that field.
Comments
Comment #1
tomsm CreditAttribution: tomsm commentedI have the same problem. Is there a solution ?
Update: I have found a workaround: Use a view to filter the unpublished nodes out.
Comment #2
OneTwoTait CreditAttribution: OneTwoTait commentedI see. That worked for me too.
Feature Request: I think it would be best if the reference widget did not show unpublished nodes by default. They're probably unpublished for a reason.
Comment #3
iantresman CreditAttribution: iantresman commentedIn CCK 6.x-2.9, unpublished nodes are displayed only if you are logged-in, so that anonymous users do not see them. It would be nice if there was an option to show unpublished node titles to anonymous users:
Comment #4
marleo CreditAttribution: marleo commented+1 to get this resolved.
The workaround is ok, but sometimes you don't want to use a view.
In Drupal, permissions and access controls normally follow you around pretty faithfully. If you can't see an unpublished node, why would this select box try to show it to you?