mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:15:46 +08:00
41986cdb2f
This also corrects the positioning in the chain of the check and removes misuse of prepend_before_action
11 lines
146 B
Ruby
11 lines
146 B
Ruby
class Admin::AdminController < ApplicationController
|
|
|
|
requires_login
|
|
before_action :ensure_staff
|
|
|
|
def index
|
|
render body: nil
|
|
end
|
|
|
|
end
|