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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user