Class: Hyrax::WorkSearchBuilder
- Inherits:
-
SearchBuilder
- Object
- SearchBuilder
- Hyrax::WorkSearchBuilder
- Includes:
- FilterSuppressedWithRoles, SingleResult
- Defined in:
- app/search_builders/hyrax/work_search_builder.rb
Overview
Finds a single work result. 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.