Sha256: 0f5700755e98254a809d8597d13eb35cecff294f35e592cae62123caa2b20715

Contents?: true

Size: 729 Bytes

Versions: 29

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true
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-5.1.0.pre.beta1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.4 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.0.rc3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.0.rc2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.6.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.5.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.4.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.4.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-3.4.0 app/search_builders/hyrax/my/works_search_builder.rb