Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andreybolonin opened this issue May 11, 2025 · 1 comment · Fixed by #60401
Closed

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

andreybolonin opened this issue May 11, 2025 · 1 comment · Fixed by #60401

Comments

@andreybolonin
Copy link
Contributor

andreybolonin commented May 11, 2025

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)

@andreybolonin andreybolonin changed the title Passing more than one Security attribute is not supported [Security] Passing more than one Security attribute is not supported May 11, 2025
@santysisi
Copy link
Contributor

Thanks for reporting this issue @andreybolonin . I opened #60401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants