Skip to content

[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

Closed

Conversation

alavieille
Copy link
Contributor

Adding missing documentation of expression voter

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

@OskarStark
Copy link
Contributor

@wouterj I would like to have a review here

@OskarStark OskarStark changed the title [security] Expression voter [Security] Expression voter Apr 28, 2019
@alavieille alavieille force-pushed the security_expression_voter branch from fbd8c00 to f47e911 Compare April 30, 2019 16:58
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
)

$vote = $expressionVoter->vote($token, $object, array($expression));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace array by []

Copy link
Contributor

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 :)

@javiereguiluz javiereguiluz modified the milestones: 3.3, 3.4 May 31, 2019
@javiereguiluz
Copy link
Member

@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!

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

Successfully merging this pull request may close these issues.

5 participants