From: bugreport%peshkin.net <> Date: Tue, 12 Nov 2002 09:58:02 +0000 (+0000) Subject: Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy X-Git-Tag: bugzilla-2.17.2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e07c48f02f6d36bd6b9c5d8764ee88173f4e29d4;p=thirdparty%2Fbugzilla.git Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy r=bbaetz a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index d7e3818d04..11dbb57dab 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;