diff --git a/cookbook/security/voters_data_permission.rst b/cookbook/security/voters_data_permission.rst index 2376d393b53..e2c0962672e 100644 --- a/cookbook/security/voters_data_permission.rst +++ b/cookbook/security/voters_data_permission.rst @@ -169,7 +169,7 @@ and tag it with ``security.voter``: xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - @@ -182,9 +182,10 @@ and tag it with ``security.voter``: // src/AppBundle/Resources/config/services.php $container ->register( - 'security.access.post_document_voter', + 'security.access.post_voter', 'AppBundle\Security\Authorization\Voter\PostVoter' ) + ->setPublic(false) ->addTag('security.voter') ;