From 2cb82e0c0e4614f92e7d5cfa7840d5835eac3133 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Tue, 12 Nov 2002 01:58:02 +0000 Subject: [PATCH] Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy r=bbaetz a=justdave git-svn-id: svn://10.0.0.236/trunk@133612 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Search.pm | 3 +++ 1 file changed, 3 insertions(+) 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;