Skip to content

Commit 06f2f74

Browse files
committed
Merge pull request #3319 from lemoinem/features/acl-update-security-id
[WCM][Security][Acl] Documentation for the new updateUserSecurityIdentity method in Dbal\MutableAclProvider
2 parents cc5c9a3 + 2f486ce commit 06f2f74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/security/acl_advanced.rst

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Security Identities
4545
This is analog to the object identity, but represents a user, or a role in
4646
your application. Each role, or user has its own security identity.
4747

48+
.. versionadded:: 2.5
49+
For users, the security identity is based on the username. This means that,
50+
if for any reason, a user's username was to change, you must ensure its
51+
security identity is updated too. The method ``updateUserSecurityIdentity``
52+
of the :class:`Symfony\\Component\\Security\\Acl\\Dbal\\MutableAclProvider`
53+
class is there to handle the update.
54+
4855
Database Table Structure
4956
------------------------
5057

0 commit comments

Comments
 (0)