X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fautohandler;fp=httemplate%2Fautohandler;h=ee37934cf0293ebea3cde90246ef8b5303d89745;hp=bdea50534232e66a6d310e37b8ceae1e9b4a3f7f;hb=d7b1a575ccef91f704b1573c431235441d52e47d;hpb=74190e6834c47c73b7f073fb1de444e572180333 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