Sha256: 6397418e6994d7ae8c634cbe48abb3e08d7f42ae9831800db5774b63064d8202
Contents?: true
Size: 504 Bytes
Versions: 46
Compression:
Stored size: 504 Bytes
Contents
# Added to allow for the My controller to show only things I have edit access to class Hyrax::My::HighlightsSearchBuilder < Hyrax::SearchBuilder include Hyrax::My::SearchBuilderBehavior self.default_processor_chain += [:show_only_highlighted_works] def show_only_highlighted_works(solr_parameters) ids = scope.current_user.trophies.pluck(:work_id) solr_parameters[:fq] ||= [] solr_parameters[:fq] += [ ActiveFedora::SolrQueryBuilder.construct_query_for_ids(ids) ] end end
Version data entries
46 entries across 46 versions & 1 rubygems