Module: Hyrax::SearchFilters
- Extended by:
- ActiveSupport::Concern
- Includes:
- FilterByType, FilterSuppressed
- Included in:
- SearchBuilder
- Defined in:
- app/search_builders/hyrax/search_filters.rb
Instance Method Summary collapse
-
#gated_discovery_filters(permission_types = discovery_permissions, ability = current_ability) ⇒ Object
Override Hydra::AccessControlsEnforcement (or Hydra::PolicyAwareAccessControlsEnforcement) Allows admin users to see everything (don’t apply any gated_discovery_filters for those users).
Methods included from FilterSuppressed
Methods included from FilterByType
Instance Method Details
#gated_discovery_filters(permission_types = discovery_permissions, ability = current_ability) ⇒ Object
Override Hydra::AccessControlsEnforcement (or Hydra::PolicyAwareAccessControlsEnforcement) Allows admin users to see everything (don’t apply any gated_discovery_filters for those users)
9 10 11 12 |
# File 'app/search_builders/hyrax/search_filters.rb', line 9 def gated_discovery_filters( = , ability = current_ability) return [] if ability.admin? super end |