From 35ffb67043bfa0e74652f6b42a565d0d0f53cec5 Mon Sep 17 00:00:00 2001 From: Jared Annis Date: Wed, 16 Aug 2017 09:20:18 -0700 Subject: [PATCH 1/1] check default display for access settings --- ajax_facets.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax_facets.pages.inc b/ajax_facets.pages.inc index 6bd47f1..9157f1d 100755 --- a/ajax_facets.pages.inc +++ b/ajax_facets.pages.inc @@ -58,9 +58,9 @@ function ajax_facets_refresh_facets_content() { $dis_id = $received_view['view_display_id']; $access = FALSE; // Check that access to this display is restricted. - if (!empty($view->display[$dis_id]->display_options['access'])) { + if (!empty($view->display['default']->display_options['access'])) { // And that restriction is not "none". - if ($view->display[$dis_id]->display_options['access']['type'] !== 'none') { + if ($view->display['default']->display_options['access']['type'] !== 'none') { // Check that we have an access to this display. if ($view->access($dis_id)) { $processed_views[$key] = [ -- 2.4.1