2013-02-05 14:16:51 -05:00
|
|
|
class Admin::AdminController < ApplicationController
|
|
|
|
|
|
|
|
before_filter :ensure_logged_in
|
2013-05-02 03:22:27 -04:00
|
|
|
before_filter :ensure_staff
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
def index
|
|
|
|
render nothing: true
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
2013-05-02 03:22:27 -04:00
|
|
|
# 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 10:45:24 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|