summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index d7e3818d0..11dbb57da 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -424,6 +424,9 @@ sub init {
"^attachments\..*," => sub {
my $table = "attachments_$chartid";
push(@supptables, "attachments $table");
+ if (Param("insidergroup") && !&::UserInGroup(Param("insidergroup"))) {
+ push(@wherepart, "$table.isprivate = 0") ;
+ }
push(@wherepart, "bugs.bug_id = $table.bug_id");
$f =~ m/^attachments\.(.*)$/;
my $field = $1;