8000 Advice to use deprecated function in isGranted()/decide() on multi attribute deprecation message · Issue #35437 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Advice to use deprecated function in isGranted()/decide() on multi attribute deprecation message #35437

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
MisatoTremor opened this issue Jan 22, 2020 · 0 comments

Comments

@MisatoTremor
Copy link
Contributor
MisatoTremor commented Jan 22, 2020

Symfony version(s) affected: 4.4

Description
The deprecation message in isGranted()/decide() when called with more than one attribute advices to use the has_role(...) function for expressions, which itself has been deprecated since 4.2

How to reproduce
Call isGranted() with multiple attributes

Possible Solution
Advise to use is_granted(...) instead.

nicolas-grekas added a commit that referenced this issue Jan 23, 2020
… (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[Security] suggest a non-deprecated function replacement

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #35437
| License       | MIT
| Doc PR        |

Commits
-------

731730f suggest a non-deprecated function replacement
@xabbuh xabbuh closed this as completed Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0