We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1522de7 commit 9d13930Copy full SHA for 9d13930
cookbook/security/entity_provider.rst
@@ -653,8 +653,11 @@ about in this section.
653
654
.. caution::
655
656
- The default role voter requires that all of the roles returned should be prefaced by ROLE_.
657
- Example ROLE_ADMIN, ROLE_USER; not just ADMIN or USER.
+ In order to work with the security configuration examples on this page
+ all roles must be prefixed with ``ROLE_`` (see
658
+ the :ref:`section about roles <book-security-roles>` in the book). For
659
+ example, your roles will be ``ROLE_ADMIN`` or ``ROLE_USER`` instead of
660
+ ``ADMIN`` or ``USER``.
661
662
In this example, the ``AcmeUserBundle:User`` entity class defines a
663
many-to-many relationship with a ``AcmeUserBundle:Role`` entity class.
0 commit comments