Module: Blacklight::AccessControls::Enforcement
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/blacklight/access_controls/enforcement.rb
Overview
Attributes and methods used to restrict access via Solr.
Note: solr_access_filters_logic is an Array of Symbols. It sets defaults. Each symbol identifies a method that must be in this class, taking two parameters (permission_types, ability). Can be changed in local apps or by plugins, e.g.:
CatalogController.include ModuleDefiningNewMethod
CatalogController.solr_access_filters_logic += [:new_method]
CatalogController.solr_access_filters_logic.delete(:we_dont_want)
Instance Method Summary collapse
-
#discovery_permissions ⇒ Object
Which permission levels (logical OR) will grant you the ability to discover documents in a search.
Instance Method Details
#discovery_permissions ⇒ Object
Which permission levels (logical OR) will grant you the ability to discover documents in a search. Override this method if you want it to be something other than the default, or hit the setter
36 37 38 |
# File 'lib/blacklight/access_controls/enforcement.rb', line 36 def @discovery_permissions ||= %w[discover read] end |