Sha256: 881fefefb50fe8f8008f7da14e25baac794efaf92d2ba72599952636c2f4b135
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 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
3 entries across 3 versions & 1 rubygems