It might happen at my website that a public node refers to a private one (I'm using node privacy byrole, BTW). If the current user is not allowed to access the referred node because of the access control setting in the node, but uses the still available hyperlink however, then he runs onto the "access denied" page. I hoped that the reference won't be available to 'underprivileged' users...

Deciding on referring to a node with access rights in mind is pretty hard at creation time as these access rights are undetermined and can change on both sides of the reference. Thus, wether a link to a referred node may be offered or not, this should be determined at run time.

I don't really care, in the case you will fix this, whether the whole reference including the node title and the caption would disappear (that's what I'd prefer, however) or the link to the node only will be hidden.

Comments

tabakroller’s picture

The snippet on http://www.minutenlohn.de/2009-01-24-drupal-node-reference-modul-links-a...
solves the problem when refering to an unpublished node. (v5.x)

May be you can adjust it to your needs.

mki’s picture

Status: Active » Closed (duplicate)

Marking this as a duplicate of #366987: Node reference doesn't respect access rights which have more info.