photomix/app/controllers/admin/application_controller.rb
2009-06-02 00:08:57 +02:00

12 lines
216 B
Ruby

class Admin::ApplicationController < ApplicationController
before_filter :require_user, :require_role_admin
protected
def require_role_admin
redirect_to(login_path) unless @current_user
end
end