summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt3
-rw-r--r--modules/node/views_handler_filter_node_access.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index bae2ba3..c18c173 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -36,7 +36,8 @@ Views 2.x-dev
o #544098 by joachim: Fix validation quirks with defaulted handlers.
o #485872 by dereine: Make sure views.css is always loaded for all users.
o #442982 by killes: Make destroy() method more robust so that views are more readily reused.
-
+ o #520558 by bdurbin: node access filter not properly checking 'view'.
+
Other changes:
o Implement a post_render hook (for themes too) and cache method.
o #501552 by neclimdul: Work around a core bug with DISTINCT on nodes.
diff --git a/modules/node/views_handler_filter_node_access.inc b/modules/node/views_handler_filter_node_access.inc
index e7a7046..fe69e6c 100644
--- a/modules/node/views_handler_filter_node_access.inc
+++ b/modules/node/views_handler_filter_node_access.inc
@@ -17,7 +17,7 @@ class views_handler_filter_node_access extends views_handler_filter {
if (!user_access('administer nodes')) {
$table = $this->ensure_my_table();
$grants = array();
- foreach (node_access_grants($op, $account) as $realm => $gids) {
+ foreach (node_access_grants('view') as $realm => $gids) {
foreach ($gids as $gid) {
$grants[] = "($table.gid = $gid AND $table.realm = '$realm')";
}