From 09d4488772e877e10fe762e17da1292b9f042235 Mon Sep 17 00:00:00 2001 From: idBloc Date: Thu, 17 May 2012 11:40:22 -0700 Subject: [PATCH] According to the documentation on Symfony.com(1), the class named Group should implements RoleInterface. However, when implementing ACLs, the code I modified would look for the Role class and therefore saves the Group as an object rather than saving the role name of the group. (1)http://symfony.com/doc/current/cookbook/security/entity_provider.html#managing-roles-in-the-database --- .../Component/Security/Acl/Domain/RoleSecurityIdentity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php b/src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php index 0d3d0d2ca2b14..da08a12e84af4 100644 --- a/src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php +++ b/src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php @@ -30,7 +30,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface */ public function __construct($role) { - if ($role instanceof Role) { + if ($role instanceof RoleInterface) { $role = $role->getRole(); }