discourse/app/controllers/admin/admin_controller.rb

18 lines
333 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class Admin::AdminController < ApplicationController
before_filter :ensure_logged_in
before_filter :ensure_staff
2013-02-05 13:16:51 -06:00
def index
render nothing: true
end
protected
# this is not really necessary cause the routes are secure
def ensure_staff
raise Discourse::InvalidAccess.new unless current_user.staff?
end
2013-02-07 09:45:24 -06:00
2013-02-05 13:16:51 -06:00
end