Sha256: ed13d4b57dea3b7b8a76a2db31a7076e107e0e37c9d14bde2b8e26d4272cdae2
Contents?: true
Size: 840 Bytes
Versions: 12
Compression:
Stored size: 840 Bytes
Contents
module Hyrax module Dashboard ## Shows a list of all works to the admins class WorksController < Hyrax::My::WorksController before_action :ensure_admin! # Search builder for a list of works # Override of Blacklight::RequestBuilders def search_builder_class Hyrax::WorksSearchBuilder end private def ensure_admin! # Even though the user can view this admin set, they may not be able to view # it on the admin page. authorize! :read, :admin_dashboard end def search_action_url(*args) hyrax.dashboard_works_url(*args) end # The url of the "more" link for additional facet values def search_facet_path(args = {}) hyrax.dashboard_works_facet_path(args[:id]) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems