Sha256: 560e076bf2ef7737e89698bb34b7ac96dc0c23cd978978ff5e5a772b0034df68

Contents?: true

Size: 389 Bytes

Versions: 43

Compression:

Stored size: 389 Bytes

Contents

class Admin::Muck::BaseController < ApplicationController

  before_filter :login_required
  before_filter :admin_access_required
  
  protected

    def get_user
      @user = current_user
    end
  
    def authorized?
      admin?
    end
  
    def permission_denied
      respond_to do |format|
        format.html do
          redirect_to home_path
        end
      end
    end

end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
muck-engine-0.2.23 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.22 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.21 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.20 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.19 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.18 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.17 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.16 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.15 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.13 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.12 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.11 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.10 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.9 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.8 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.7 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.6 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.5 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.4 app/controllers/admin/muck/base_controller.rb
muck-engine-0.2.3 app/controllers/admin/muck/base_controller.rb