[Serializer] AbstractObjectNormalizer: be sure that isAllowedAttribute is called
This commit is contained in:
parent
070a02ca7d
commit
29b4115d1a
@ -182,10 +182,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
|
||||
$attribute = $this->nameConverter->denormalize($attribute);
|
||||
}
|
||||
|
||||
$allowed = $allowedAttributes === false || in_array($attribute, $allowedAttributes);
|
||||
$ignored = in_array($attribute, $this->ignoredAttributes);
|
||||
|
||||
if (!$allowed || $ignored) {
|
||||
if (($allowedAttributes !== false && !in_array($attribute, $allowedAttributes)) || !$this->isAllowedAttribute($class, $attribute, $format, $context)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user