If a view uses a relationship and a node output in that view does not have that field filled it fails the permissions check.

To reproduce.
1. Two content types, A has node reference field to B
2. View for type A using relationship to type B to show fields for Type B
3. Non-Superuser user has permissions to see both
4. Any type A node without the node reference filled out will not be displayed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

breizhbenoit’s picture

I have disabled "SQL rewriting" in query settings ("Advanced").
It's just a quick fix, if someone have a better solution, I am interested.

Bedstvie’s picture

problem with hook query_node_access_alter in node module.
fixed in custom module