summaryrefslogtreecommitdiff
path: root/httemplate/autohandler
diff options
context:
space:
mode:
authorivan <ivan>2009-02-17 02:28:48 +0000
committerivan <ivan>2009-02-17 02:28:48 +0000
commitd7b1a575ccef91f704b1573c431235441d52e47d (patch)
tree69ae1551039a77ded47c36d162ee2ef83cc85ddd /httemplate/autohandler
parent74190e6834c47c73b7f073fb1de444e572180333 (diff)
per-user preference for turning on profiling display when DBIx::Profile is loaded, RT#4830
Diffstat (limited to 'httemplate/autohandler')
-rw-r--r--httemplate/autohandler5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler
index bdea50534..ee37934cf 100644
--- a/httemplate/autohandler
+++ b/httemplate/autohandler
@@ -7,7 +7,10 @@
my $profile = '';
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
- if ( lc($r->content_type) eq 'text/html' ) {
+ if ( lc($r->content_type) eq 'text/html'
+ && $FS::CurrentUser::CurrentUser->option('show_db_profile')
+ )
+ {
## barely worth it, just in case someone tries to use profiling on a
## non-RT install