Sha256: dafbea011abcf8c9f90f235428c9a7ac21cd326749339fa01060e4c0417bd8e9

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

require_dependency "pwb/application_controller"

module Pwb
  class AdminPanelController < ActionController::Base
    layout 'pwb/admin_panel'
    def show
      unless current_user && current_user.admin 
        render 'pwb/errors/admin_required', :layout => "layouts/pwb/devise"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pwb-1.0.0 app/controllers/pwb/admin_panel_controller.rb
pwb-0.1.1 app/controllers/pwb/admin_panel_controller.rb
pwb-0.1.0 app/controllers/pwb/admin_panel_controller.rb
pwb-0.0.2 app/controllers/pwb/admin_panel_controller.rb
pwb-0.0.1 app/controllers/pwb/admin_panel_controller.rb