Sha256: cc9854062dffec48e56ffc684bc4db9822f51a6693b20d2aa07347e0f7d863d8

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

module Hyrax
  # Finds a list of works. It returns no result if you don't have
  # access to the requested work.  If the work is suppressed (due to being in a
  # workflow), then it checks to see if the current_user has any workflow role
  # on the given work.
  class ActiveWorksSearchBuilder < Hyrax::SearchBuilder
    include Hyrax::FilterByType

    def only_works?
      true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.1.0 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.5 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.4 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.3 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.2 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.1 app/search_builders/hyrax/active_works_search_builder.rb
hyrax-1.0.0.rc2 app/search_builders/hyrax/active_works_search_builder.rb