Sha256: 6b8cdb515943765d376bdc4caf36aad263e17ab8861477f4aca56ad7ae392f4d
Contents?: true
Size: 495 Bytes
Versions: 19
Compression:
Stored size: 495 Bytes
Contents
In you catalog_controller.rb add the following lines: ``` include Hydra::Controller::ControllerBehavior before_filter :enforce_show_permissions, :only=>:show CatalogController.solr_search_params_logic += [:add_access_controls_to_solr_params] ``` Additionally, if you want to remove FileAssets from search results you can add: ``` CatalogController.solr_search_params_logic += [:exclude_unwanted_models] ``` Running the generator: `rails g hydra:head` typically takes care of this for you.
Version data entries
19 entries across 19 versions & 1 rubygems