Skip to content

Commit

Permalink
Updating to hydra-head 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
awead committed Jan 21, 2016
1 parent 7cfea8f commit b07f9f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/concerns/sufia/homepage_controller.rb
Expand Up @@ -7,7 +7,7 @@ module Sufia::HomepageController
include Blacklight::SearchContext
include Sufia::Controller
include Blacklight::SearchHelper
include Hydra::Controller::SearchBuilder
include Blacklight::AccessControls::Catalog

self.search_params_logic += [:show_only_generic_files, :add_access_controls_to_solr_params]
layout 'homepage'
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/sufia/templates/catalog_controller.rb
Expand Up @@ -15,7 +15,7 @@ class CatalogController < ApplicationController
# These before_filters apply the hydra access controls
before_filter :enforce_show_permissions, only: :show
# This applies appropriate access controls to all solr queries
CatalogController.search_params_logic += [:add_access_controls_to_solr_params, :add_advanced_parse_q_to_solr]
Hydra::SearchBuilder.default_processor_chain += [:add_access_controls_to_solr_params, :add_advanced_parse_q_to_solr]

skip_before_filter :default_html_head

Expand Down

0 comments on commit b07f9f4

Please sign in to comment.