mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 08:02:45 +08:00

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
|