Sha256: 03521cea0019f0fc2bc069f93e937c3ea3616d50a4081669c750a85c059d59c5
Contents?: true
Size: 734 Bytes
Versions: 25
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true module Hyrax module Admin module UsersControllerBehavior extend ActiveSupport::Concern include Blacklight::SearchContext included do before_action :ensure_admin! with_themed_layout 'dashboard' end # Display admin menu list of users def index add_breadcrumb t(:'hyrax.controls.home'), root_path add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path add_breadcrumb t(:'hyrax.admin.users.index.title'), hyrax.admin_users_path @presenter = Hyrax::Admin::UsersPresenter.new end private def ensure_admin! authorize! :read, :admin_dashboard end end end end
Version data entries
25 entries across 25 versions & 1 rubygems