зеркало из https://github.com/mozilla/gecko-dev.git
Bug 179491 Searchs of attachments containing a string do not enforce attchment privacy
r=bbaetz a=justdave
This commit is contained in:
Родитель
d6ffa19b30
Коммит
c5df58fbc6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче