Skip to content
Merged
Changes from all commits
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
9 changes: 3 additions & 6 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1934,12 +1934,9 @@ database and every user is *always* given at least one role: ``ROLE_USER``::
}

This is a nice default, but you can do *whatever* you want to determine which roles
a user should have. Here are a few guidelines:

* Every role **must start with** ``ROLE_`` (otherwise, things won't work as expected)

* Other than the above rule, a role is just a string and you can invent what you
need (e.g. ``ROLE_PRODUCT_ADMIN``).
a user should have. The only rule is that every role **must start with** ``ROLE_`` -
otherwise, things won't work as expected. Other than that, a role is just a string
and you can invent whatever you need (e.g. ``ROLE_PRODUCT_ADMIN``).

You'll use these roles next to grant access to specific sections of your site.

Expand Down