2013-02-05 14:16:51 -05:00
|
|
|
class Admin::AdminController < ApplicationController
|
|
|
|
|
|
|
|
before_filter :ensure_logged_in
|
|
|
|
before_filter :ensure_is_admin
|
|
|
|
|
|
|
|
def index
|
|
|
|
render nothing: true
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def ensure_is_admin
|
|
|
|
raise Discourse::InvalidAccess.new unless current_user.admin?
|
|
|
|
end
|
2013-02-07 10:45:24 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|