Skip to content

Commit 9d13930

Browse files
committed
Add formatting, links, and clarity
1 parent 1522de7 commit 9d13930

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cookbook/security/entity_provider.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,11 @@ about in this section.
653653

654654
.. caution::
655655

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.
656+
In order to work with the security configuration examples on this page
657+
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``.
658661

659662
In this example, the ``AcmeUserBundle:User`` entity class defines a
660663
many-to-many relationship with a ``AcmeUserBundle:Role`` entity class.

0 commit comments

Comments
 (0)