summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc
index a9ee85c..a29b13f 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc
@@ -21,7 +21,7 @@ class views_handler_filter_node_access extends views_handler_filter {
* See _node_access_where_sql() for a non-views query based implementation.
*/
function query() {
- if (!user_access('administer nodes')) {
+ if (!user_access('administer nodes') && module_implements('node_grants')) {
$table = $this->ensure_my_table();
$grants = db_or();
foreach (node_access_grants('view') as $realm => $gids) {