mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 02:55:39 +08:00
SECURITY: Moderators should not be able to access customizations
This commit is contained in:
@ -166,7 +166,8 @@ Discourse::Application.routes.draw do
|
||||
post "flags/disagree/:id" => "flags#disagree"
|
||||
post "flags/defer/:id" => "flags#defer"
|
||||
resources :site_customizations, constraints: AdminConstraint.new
|
||||
scope "/customize" do
|
||||
|
||||
scope "/customize", constraints: AdminConstraint.new do
|
||||
resources :user_fields, constraints: AdminConstraint.new
|
||||
resources :emojis, constraints: AdminConstraint.new
|
||||
|
||||
|
Reference in New Issue
Block a user