mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 20:42:44 -05:00
17 lines
333 B
Ruby
17 lines
333 B
Ruby
class Admin::AdminController < ApplicationController
|
|
|
|
before_filter :ensure_logged_in
|
|
before_filter :ensure_staff
|
|
|
|
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
|
|
|
|
end
|