Sha256: d2666d93b8ec5a5716433075eefd07ba121e6a8678c441cfb2f69528932f29a6
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
# Added to allow for the My controller to show only things I have edit access to class Hyrax::MyWorksSearchBuilder < Hyrax::SearchBuilder include Hyrax::FilterByType self.default_processor_chain += [:show_only_resources_deposited_by_current_user] # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyrax-1.0.0.rc1 | app/search_builders/hyrax/my_works_search_builder.rb |