Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Add example of @IsGranted() with multiple roles. #624

Merged
merged 1 commit into from Jul 3, 2019
Merged

Add example of @IsGranted() with multiple roles. #624

merged 1 commit into from Jul 3, 2019

Conversation

mattjanssen
Copy link
Contributor

There are use cases of @IsGranted() where we want to check that a user has any one of multiple roles that don't intersect in the role hierarchy. I've seen this is two separate occasions already, especially with people migrating away from the JMSSecurityExtraBundle.

Does including one example make sense? Should there be a separate sentence or paragraph pointing this out?

There are use cases of `@IsGranted()` where we want to check that a user has any one of multiple roles. I've seen this is two separate occasions already, especially with people migrating away from the JMSSecurityExtraBundle.

Does including one example make sense? Should there be a separate sentence or paragraph pointing this out?
@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

Thank you @mattjanssen.

@fabpot fabpot merged commit 97cc360 into sensiolabs:master Jul 3, 2019
fabpot added a commit that referenced this pull request Jul 3, 2019
…nssen)

This PR was merged into the 5.4.x-dev branch.

Discussion
----------

Add example of `@IsGranted()` with multiple roles.

There are use cases of `@IsGranted()` where we want to check that a user has any one of multiple roles that don't intersect in the role hierarchy. I've seen this is two separate occasions already, especially with people migrating away from the JMSSecurityExtraBundle.

Does including one example make sense? Should there be a separate sentence or paragraph pointing this out?

Commits
-------

97cc360 Add example of `@IsGranted()` with multiple roles.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants