This patch adds a filter handler for node_access for use with Views where the base table is not node. While the node module successfully rewrites Views queries against the node base table, any views using a different base table do not have their queries rewritten even when establishing a relationship back to the node table. This filter fixes that.

Patched against Views HEAD (DRUPAL-6--3) and patches successfully against Views 2.5.

CommentFileSizeAuthor
views_node_access.patch2.99 KByhahn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

I agree. Committed to both 3.x and 2.x branches.

Status: Fixed » Closed (fixed)

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