Sha256: 30fa08a79bb869d524e78f84fbe3953deb0883c1b1db553474268b20ad45e786

Contents?: true

Size: 585 Bytes

Versions: 19

Compression:

Stored size: 585 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.
    self.default_processor_chain -= [:add_access_controls_to_solr_params]

    def only_works?
      true
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.rc4 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.rc3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.rc2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.rc1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.beta2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.1.0.beta1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.rc3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.rc2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.rc1 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.beta5 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.beta4 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.beta3 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.beta2 app/search_builders/hyrax/my/works_search_builder.rb
hyrax-2.0.0.beta1 app/search_builders/hyrax/my/works_search_builder.rb