8000 According to the documentation on Symfony.com(1), the class named Gro… · symfony/symfony@09d4488 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09d4488

Browse files
committed
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
1 parent 5314836 commit 09d4488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
3030
*/
3131
public function __construct($role)
3232
{
33-
if ($role instanceof Role) {
33+
if ($role instanceof RoleInterface) {
3434
$role = $role->getRole();
3535
}
3636

0 commit comments

Comments
 (0)
0