-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Financial type hook clean up and fix towards dev/core#2454 Extend financial acls view limitations to ContributionR… #19788
Financial type hook clean up and fix towards dev/core#2454 Extend financial acls view limitations to ContributionR… #19788
Conversation
Just some minor cleanup to use the hook
(Standard links)
|
test this please |
@eileenmcnaughton is this good, bad, or neutral vis-a-vis our goal of migrating the one-off financial type ACL code to the standard api permission model using |
@colemanw mostly neutral - in that this deals with the available permissions declaration, not the application of them. However, the ongoing more of financial type acl code out of core to the core extension is working towards the right implementation |
Ok, I see this is mostly about restructuring code not changing functionality. Merge on pass. |
return; | ||
} | ||
$actions = [ | ||
'add' => ts('add'), |
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.
@eileenmcnaughton just a small thing this probably should be E::ts rather than ts given we are in an extension
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.
Yeah I guess so - it works like that for core ext?
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.
Yes it does.
Overview
This does some cleanup on the financial type acl code moving the addition of permissions to a hook in the extension and adds ContributionRecur to the entities which get financial_type_id added as a filter for non-permissioned users
Before
Code all in core. No handling for contribution recur entity
After
Contribution recur should be limited via the api / any functions that actually call the api with checkPermissions (which many likely don't)
Technical Details
Comments