photomix/app/controllers/admin/application_controller.rb

12 lines
216 B
Ruby
Raw Normal View History

2009-06-02 00:08:57 +02:00
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