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-0.8.7 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.6 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.5 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.4 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.3 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.2 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.1 app/controllers/cm_admin/application_controller.rb
cm-admin-0.8.0 app/controllers/cm_admin/application_controller.rb
cm-admin-0.7.8 app/controllers/cm_admin/application_controller.rb
cm-admin-0.7.7 app/controllers/cm_admin/application_controller.rb
cm-admin-0.7.6 app/controllers/cm_admin/application_controller.rb