Module: Sufia::MySearchBuilderBehavior

Extended by:
ActiveSupport::Concern
Includes:
Hydra::AccessControlsEnforcement, SearchBuilder
Included in:
MySearchBuilder
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

Methods included from SearchBuilder

#only_generic_files_and_collections, #show_only_collections, #show_only_generic_files, #show_only_highlighted_files, #show_only_resources_deposited_by_current_user, #show_only_shared_files

Instance Method Details

#discovery_permissionsObject

show only files with edit permissions in lib/hydra/access_controls_enforcement.rb apply_gated_discovery



16
17
18
# File 'app/search_builders/sufia/my_search_builder_behavior.rb', line 16

def discovery_permissions
  ["edit"]
end