Commit e07c48f0 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

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

r=bbaetz a=justdave
parent bd5461ab
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment