-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Security] Expression voter #10236
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
[Security] Expression voter #10236
Conversation
6ba75a4
to
fbd8c00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one
@wouterj I would like to have a review here |
fbd8c00
to
f47e911
Compare
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())' | ||
) | ||
|
||
$vote = $expressionVoter->vote($token, $object, array($expression)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace array by []
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be merged
It is really a component worth knowing :)
@alavieille thanks a lot for contributing the docs for this missing feature! We merged it in the 3.4 branch so it's available for all Symfony Doc versions. Thanks! |
Adding missing documentation of expression voter