Skip to content

Minor tweak in a security expression explanation #12763

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

Merged
merged 1 commit into from
Dec 7, 2019

Conversation

javiereguiluz
Copy link
Member

I was checking https://symfony.com/doc/current/security/expressions.html and I was going to submit a PR to fix this -> "ROLE_ADMIN" in roles ...

But then I read that roles in expressions contains ALL roles (it "flattens" the role hierarchy) which is very different from what happens in other parts of Symfony. So maybe we could tweak the description a bit to make this special behavior more obvious?

javiereguiluz added a commit that referenced this pull request Dec 7, 2019
…eguiluz)

This PR was merged into the 3.4 branch.

Discussion
----------

Minor tweak in a security expression explanation

I was checking https://symfony.com/doc/current/security/expressions.html and I was going to submit a PR to fix this -> `"ROLE_ADMIN" in roles ...`

But then I read that `roles` in expressions contains ALL roles (it "flattens" the role hierarchy) which is very different from what happens in other parts of Symfony. So maybe we could tweak the description a bit to make this special behavior more obvious?

Commits
-------

8438276 Minor tweak in a security expression explanation
@javiereguiluz javiereguiluz merged commit 8438276 into symfony:3.4 Dec 7, 2019
@javiereguiluz javiereguiluz deleted the expression_security branch December 7, 2019 19:49
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.

4 participants