Sha256: cb4be7b06eaa3cc5aaafa6eccf14f264a324b74eebb31471d478f13213b48d66

Contents?: true

Size: 699 Bytes

Versions: 29

Compression:

Stored size: 699 Bytes

Contents

module Hyrax
  # Added to allow for the Hyrax::My::WorksController to show only things I have deposited
  # If the work went through mediated deposit, I may no longer have edit access to it.
  class My::WorksSearchBuilder < My::SearchBuilder
    include Hyrax::FilterByType

    # We remove the access controls filter, because some of the works a user has
    # deposited may have gone through a workflow which has removed their ability
    # to edit the work.
    # We remove the active works filter, so a depositor can see submitted works in any state.
    self.default_processor_chain -= [:only_active_works, :add_access_controls_to_solr_params]

    def only_works?
      true
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.5 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.4 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.9.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.8.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.7.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.7.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.7.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.6.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.0.0.pre.rc1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.0.0.pre.beta3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.5.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.5.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.0.0.pre.beta2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.4.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.0.0.pre.beta1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.4.0 app/search_builders/hyrax/my/works_search_builder.rb