# # Blogaze # Copyright (C) 2011-2013 Jack Polgar # # Blogaze is released under the BSD 3-clause license. # @license http://opensource.org/licenses/BSD-3-Clause # module Blogaze module Admin class Controller < ::Blogaze::Controller layout 'admin' helper :blue_form def initialize super if !@userinfo.respond_to?('group') or !@userinfo.group.is_admin redirect '/login' end end end end Dir.glob(File.dirname(__FILE__) + '/*.rb').each do |controller| require(controller) end end