mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
CHANGE: Mini Profiler only enabled for developers in prd
This commit is contained in:
@ -305,7 +305,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def mini_profiler_enabled?
|
||||
defined?(Rack::MiniProfiler) && current_user.try(:admin?)
|
||||
defined?(Rack::MiniProfiler) && guardian.is_developer?
|
||||
end
|
||||
|
||||
def authorize_mini_profiler
|
||||
|
Reference in New Issue
Block a user