From e07c48f02f6d36bd6b9c5d8764ee88173f4e29d4 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Tue, 12 Nov 2002 09:58:02 +0000 Subject: Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy r=bbaetz a=justdave --- Bugzilla/Search.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla') 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; -- cgit v1.2.3-24-g4f1b