-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[SecurityHttp] Removes final keyword from IsGranted attribute #61504
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
Conversation
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.
Looks sensible to me
|
Thank you @crtl. |
faa0ea1 to
3392f34
Compare
|
This won't work. The API used by the IsGrantedAttributeListener does not support using attributes of a child class, so this feature is broken. |
|
@stof is right. Let's revert the PR. If we want to un-finalize |
|
See missing bits at #61542 |
…rekas) This PR was merged into the 7.4 branch. Discussion ---------- [Security] Allow subclassing `#[IsGranted]` | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | - | License | MIT Was missing from #61504 Commits ------- a64980d [Security] Allow subclassing `#[IsGranted]`
Often times the same set of rules is reused many times across a project making it tedious having to manually add the attributes with their specific configuration.
Making
#[IsGranted]nonfinalallows developers to implement custom attributes like#[IsAdmin]etc. in their projects.