8000
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 7cbad6d commit 1522de7Copy full SHA for 1522de7
cookbook/security/entity_provider.rst
@@ -651,6 +651,11 @@ about in this section.
651
If you fail to return any roles, it may appear as if your user isn't
652
authenticated at all.
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.
658
659
In this example, the ``AcmeUserBundle:User`` entity class defines a
660
many-to-many relationship with a ``AcmeUserBundle:Role`` entity class.
661
A user can be related to several roles and a role can be composed of
0 commit comments