mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:51:08 +08:00
Revert "Activate mini-profiler when in profiling env."
This reverts commit d61109388cb12da7593c4c7ae99a9de35e683f4c.
This commit is contained in:
@ -520,7 +520,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def mini_profiler_enabled?
|
||||
defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development? || Rails.env.profile?)
|
||||
defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development?)
|
||||
end
|
||||
|
||||
def authorize_mini_profiler
|
||||
|
Reference in New Issue
Block a user