mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-19 03:52:25 -05:00
17 lines
286 B
Ruby
17 lines
286 B
Ruby
|
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
|
||
|
|
||
|
end
|