-
Notifications
You must be signed in to change notification settings - Fork 31
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
EZP-28926: Add a legacy security voter decorator #146
Conversation
…y modules/functions before exceptions are thrown
You mean netgen legacy admin or something? legacy extensions tend to use legacy api for this right? so not really affected or? |
Netgen legacy admin, yes, but really any custom code from the new stack checking for legacy permissions. We have some pages implemented in the frontend too which reuse pieces of legacy, while checking for legacy permissions too with permissions resolver. |
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.
+1 besides missing PHPDocs.
return true; | ||
} | ||
|
||
public function vote(TokenInterface $token, $object, array $attributes) |
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.
Would be nice to see PHPDocs here.
@kmadejski Added PHPDoc 👍 |
@andrerom OK to merge and tag? |
This allows checking for legacy modules/functions before exceptions are thrown.
It only rethrows the exception if for some reason this voter votes with
ACCESS_ABSTAIN
.Needed for legacy permission checking after ezsystems/ezpublish-kernel#2273.