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-1.3.7 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.6 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.5 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.4 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.3 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.2 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.1 app/controllers/cm_admin/application_controller.rb
cm-admin-1.3.0 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.9 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.8 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.7 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.6 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.5 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.4 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.3 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.2 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.1 app/controllers/cm_admin/application_controller.rb
cm-admin-1.2.0 app/controllers/cm_admin/application_controller.rb
cm-admin-1.1.9 app/controllers/cm_admin/application_controller.rb
cm-admin-1.1.8 app/controllers/cm_admin/application_controller.rb