-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
extra code example #12538
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
extra code example #12538
Conversation
* 3.4: [#12538] Changed AND to OR
* 4.3: [#12538] Changed AND to OR
* 4.4: [#12538] Changed AND to OR
Thanks @webmasterMeyers! Support for this was just readded in Symfony 5 (See symfony/symfony#34304), so it makes sense to document it more clearly and I like the way you did it (small change, huge impact). However, if I look at the implementation of that PR and what I have written in symfony/symfony#33584 , I think the condition is OR instead of AND when you define multiple roles. I've changed this in b1c8312. If you think it's incorrect, please comment :) |
Wow, now I think I have a security problem after reading the PR thread. Maybe the original PR is right, it should only allow 1 role passed in. The implementation of
confusing indeed. |
a quick test on symfony 4.3.5 tells me it is |
Further, I'd like to say that passing multiple role makes the most sense as an |
This one is a bit tricky. The point here is that the |
Having said that I must admit that I am not sure how we should deal with that here. Stating that only one of the roles is required is true, but the example doesn't use them which makes this so confusing. |
document the ability to pass in multiple roles.