From ce7169dc8be336da570202e818033a7098012e83 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 19 Feb 2013 13:50:58 +0800 Subject: Bug 824399 --- report.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'report.cgi') diff --git a/report.cgi b/report.cgi index 5d5033b7d..7bff62be9 100755 --- a/report.cgi +++ b/report.cgi @@ -226,7 +226,13 @@ $vars->{'width'} = $width if $width; $vars->{'height'} = $height if $height; $vars->{'query'} = $query; -$vars->{'debug'} = $cgi->param('debug'); + +if ($cgi->param('debug') + && Bugzilla->params->{debug_group} + && Bugzilla->user->in_group(Bugzilla->params->{debug_group}) +) { + $vars->{'debug'} = 1; +} if ($action eq "wrap") { # So which template are we using? If action is "wrap", we will be using -- cgit v1.2.3-24-g4f1b