mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
DEV: New readonly mode. Only applies to non-staff (#16243)
This commit is contained in:

committed by
GitHub

parent
985afe1092
commit
6e53f4d913
@ -51,6 +51,8 @@ class UsersController < ApplicationController
|
||||
|
||||
after_action :add_noindex_header, only: [:show, :my_redirect]
|
||||
|
||||
allow_in_staff_writes_only_mode :admin_login
|
||||
|
||||
MAX_RECENT_SEARCHES = 5
|
||||
|
||||
def index
|
||||
|
Reference in New Issue
Block a user