8000 Caution that roles should start with ROLE_ by jrjohnson · Pull Request #4218 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Caution that roles should start with ROLE_ #4218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 16, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add formatting, links, and clarity
  • Loading branch information
jrjohnson committed Sep 12, 2014
commit 9d1393012b6fab4b877005dff9e00b38f0d98407
7 changes: 5 additions & 2 deletions cookbook/security/entity_provider.rst
7327
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,11 @@ about in this section.

.. caution::

The default role voter requires that all of the roles returned should be prefaced by ROLE_.
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
the :ref:`section about roles <book-security-roles>` in the book). For
example, your roles will be ``ROLE_ADMIN`` or ``ROLE_USER`` instead of
``ADMIN`` or ``USER``.

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