Skip to content

Commit 6839cf2

Browse files
authored
Merge pull request #554 from mikemilano/serialization-context-typo
Corrected typo in BookContextBuilder example: admin_input vs admin:input
2 parents 5615cba + 8806db0 commit 6839cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ final class BookContextBuilder implements SerializerContextBuilderInterface
396396
$resourceClass = $context['resource_class'] ?? null;
397397
398398
if ($resourceClass === Book::class && isset($context['groups']) && $this->authorizationChecker->isGranted('ROLE_ADMIN') && false === $normalization) {
399-
$context['groups'][] = 'admin_input';
399+
$context['groups'][] = 'admin:input';
400400
}
401401
402402
return $context;

0 commit comments

Comments
 (0)