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
This commit is contained in:
bugreport%peshkin.net
2002-11-12 01:58:02 +00:00
parent e42052df34
commit 2cb82e0c0e

View File

@@ -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;