summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
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 " .