Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ACL RoleSecurityIdentity] check if instance of Role #1538

Closed
@yktd26

Description

@yktd26

Constructor of Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity

currently it check if the argument is instance of Symfony\Component\Security\Core\Role\Role by

if ($role instanceof Role)

Maybe it should be changed to

if ($role instanceof RoleInterface)

Because if we use another Role class which implements RoleInterface

it dosen't work when we check access, it will throw a NoAceFoundException when vote

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions