Bug 364195 - "No way to search for private comments" [p=reed r=justdave a=justdave]
git-svn-id: svn://10.0.0.236/trunk@217228 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -707,6 +707,18 @@ sub init {
|
||||
"ON $table.bug_id = bugs.bug_id $extra");
|
||||
$f = "$table.thetext";
|
||||
},
|
||||
"^longdescs\.isprivate," => sub {
|
||||
my $table = "longdescs_$chartid";
|
||||
my $extra = "";
|
||||
if (Bugzilla->params->{"insidergroup"}
|
||||
&& !Bugzilla->user->in_group(Bugzilla->params->{"insidergroup"}))
|
||||
{
|
||||
$extra = "AND $table.isprivate < 1";
|
||||
}
|
||||
push(@supptables, "INNER JOIN longdescs AS $table " .
|
||||
"ON $table.bug_id = bugs.bug_id $extra");
|
||||
$f = "$table.isprivate";
|
||||
},
|
||||
"^work_time,changedby" => sub {
|
||||
my $table = "longdescs_$chartid";
|
||||
push(@supptables, "INNER JOIN longdescs AS $table " .
|
||||
|
||||
Reference in New Issue
Block a user