Module: Sufia::MySearchBuilderBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- MyCollectionsSearchBuilder, MyHighlightsSearchBuilder, MySharesSearchBuilder, MyWorksSearchBuilder
- Defined in:
- app/search_builders/sufia/my_search_builder_behavior.rb
Overview
Behavior for the my controller search builder to allow the my controller to only get access to items I have edit access to.
Separating as a behavior allows for easier overriding of the gem behavior.
Instance Method Summary collapse
-
#discovery_permissions ⇒ Object
show only files with edit permissions in lib/hydra/access_controls_enforcement.rb apply_gated_discovery.
Instance Method Details
#discovery_permissions ⇒ Object
show only files with edit permissions in lib/hydra/access_controls_enforcement.rb apply_gated_discovery
13 14 15 |
# File 'app/search_builders/sufia/my_search_builder_behavior.rb', line 13 def ["edit"] end |