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

Skip to content

[Security] Passing more than one Security attribute is not supported #60398

Closed
@andreybolonin

Description

@andreybolonin

Symfony version(s) affected

7.3

Description

Passing more than one Security attribute to "Symfony\Component\Security\Core\Authorization\AccessDecisionManager::decide()" is not supported.

How to reproduce

  1. use symfony 7.3
  2. define multiple roles in security.yaml:
access_control: 
    - { path: ^/admin, roles: [ROLE_ADMIN, ROLE_SALES]}

Possible Solution

No response

Additional Context

(#36359)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions