Sha256: cebc9b5f4a281830a35194bf5b16631b94b6991d0d81725e7d922793d24e57de

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

# Added to allow for the My controller to show only things I have edit access to
class Sufia::MyWorksSearchBuilder < Sufia::SearchBuilder
  include Sufia::MySearchBuilderBehavior

  self.default_processor_chain = [:add_advanced_search_to_solr] + default_processor_chain
  self.default_processor_chain += [
    :show_only_resources_deposited_by_current_user,
    :show_only_generic_works
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-7.0.0.beta2 app/search_builders/sufia/my_works_search_builder.rb
sufia-7.0.0.beta1 app/search_builders/sufia/my_works_search_builder.rb