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

Methods included from FilterSuppressed

#only_active_works

Methods included from FilterByType

#filter_models

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(permission_types = discovery_permissions, ability = current_ability)
  return [] if ability.admin?
  super
end