Sha256: a91d3d91790c6acf2418fae2379ea06c872729ad9936b85eeb8248a741c5f552

Contents?: true

Size: 297 Bytes

Versions: 151

Compression:

Stored size: 297 Bytes

Contents

module CmAdmin
  class ApplicationController < ::ActionController::Base
    
    # before_action :check_cm_admin
    layout 'cm_admin'


    def check_cm_admin
      redirect_to CmAdmin::Engine.mount_path + '/access-denied' unless defined?(::Current) && ::Current.cm_admin_user
    end

  end
end

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
cm-admin-4.1.2 app/controllers/cm_admin/application_controller.rb
cm-admin-4.1.1 app/controllers/cm_admin/application_controller.rb
cm-admin-4.1.0 app/controllers/cm_admin/application_controller.rb
cm-admin-4.0.0 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.16 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.15 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.14 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.13 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.12 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.11 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.10 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.9 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.8 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.7 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.6 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.5 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.4 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.3 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.2 app/controllers/cm_admin/application_controller.rb
cm-admin-3.0.1 app/controllers/cm_admin/application_controller.rb