CHANGE: Mini Profiler only enabled for developers in prd

This commit is contained in:
Sam
2014-07-17 08:34:30 +10:00
parent acee21cb6f
commit 9468ebeb2e
8 changed files with 12 additions and 12 deletions

View File

@ -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