summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorreed%reedloden.com <>2006-12-20 14:14:24 +0100
committerreed%reedloden.com <>2006-12-20 14:14:24 +0100
commit8850b0dc8bf5488cb9736bc4b7909b31d447081d (patch)
treee4cc0493c85c9a63e497c2b554abd7a2c2ab23ce /Bugzilla/Search.pm
parent3f1a0a8168493175b6c44e18edc25bd655f8c8b2 (diff)
downloadbugzilla-8850b0dc8bf5488cb9736bc4b7909b31d447081d.tar.gz
bugzilla-8850b0dc8bf5488cb9736bc4b7909b31d447081d.tar.xz
Bug 364195 - "No way to search for private comments" [p=reed r=justdave a=justdave]
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index d0b0cd6ba..c20abc418 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -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 " .