diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index d7e3818d04c..11dbb57dab2 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/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;