Commit 868b22d3 authored by merlinofchaos's avatar merlinofchaos

#520558 by bdurbin: node access filter not properly checking "view"

parent 18fdf658
......@@ -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.
......
......@@ -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')";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment