Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy

r=bbaetz
a=justdave
This commit is contained in:
bugreport%peshkin.net 2002-11-12 01:58:02 +00:00
Родитель d6ffa19b30
Коммит c5df58fbc6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -424,6 +424,9 @@ sub init {
"^attachments\..*," => sub { "^attachments\..*," => sub {
my $table = "attachments_$chartid"; my $table = "attachments_$chartid";
push(@supptables, "attachments $table"); push(@supptables, "attachments $table");
if (Param("insidergroup") && !&::UserInGroup(Param("insidergroup"))) {
push(@wherepart, "$table.isprivate = 0") ;
}
push(@wherepart, "bugs.bug_id = $table.bug_id"); push(@wherepart, "bugs.bug_id = $table.bug_id");
$f =~ m/^attachments\.(.*)$/; $f =~ m/^attachments\.(.*)$/;
my $field = $1; my $field = $1;