Sha256: 0e14da31e9288122dfe71c49216eb5ffcc824affe7ef540d67af3c70fb6d3451

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module QuicCms
  class Admin::BaseController < ApplicationController
    #before_filter :authorize_admin!

    def index
    end

    private

    def authorize_admin!
      unless current_user && current_user.admin?
        flash[:error] = "Access Denied - Must be an Admin to do that."
        redirect_to root_path
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quic_cms-0.1.2 app/controllers/quic_cms/admin/base_controller.rb
quic_cms-0.1.1 app/controllers/quic_cms/admin/base_controller.rb
quic_cms-0.1.0 app/controllers/quic_cms/admin/base_controller.rb
quic_cms-0.0.9 app/controllers/quic_cms/admin/base_controller.rb