This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/controllers/admin/admin_controller.rb
Sam f2e7b74d88 FIX: don't return 200s when login is required to paths
When running `ensure_login_required` it should always happen prior to
`check_xhr` cause check xhr will trigger a 200 response
2018-02-01 12:26:45 +11:00

11 lines
203 B
Ruby

class Admin::AdminController < ApplicationController
prepend_before_action :check_xhr, :ensure_logged_in
prepend_before_action :check_xhr, :ensure_staff
def index
render body: nil
end
end