# frozen_string_literal: true module Hyrax # 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. class WorkSearchBuilder < ::SearchBuilder include SingleResult include FilterSuppressedWithRoles end end