-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
Fix another Financial Type ACL bug #32206
base: 6.0
Are you sure you want to change the base?
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
The test results are all over the place, I'm going to assume something is going on with the infra and I'll wait to retest this. |
Jenkins re test this please |
bc97866
to
9fd921e
Compare
…ypes pass by reference is correctly updated as well as the returned value
@MegaphoneJon do you think we need to include anything in the release notes because I imagine that for those that have granted financial type ACLs they may need to re-set them because the permission key has changed right? |
I don't use financial acls anywhere, but this seems ok. That's so strange how it takes a seed list parameter and updates it but then also returns a list. While your heads are in name/label/financial space don't suppose anyone wants to look at #32085? It's the same as 32084 (merged) just in a different spot. Separately while looking at this I did find yet a few other places still using name instead of label. TBD. |
@seamuslee001 no. The permission always used |
Overview
While writing a test for #32189, I found two issues:
getAvailableFinancialTypes()
gets a value passed by reference AND returns a value.Before
Sometimes, permissions for financial types with mismatched names/labels are incorrect.
After
Fixed.
Comments
This became much more complicated because the test seems to suggest that removing financial ACL permissions should have an immediate effect, even if adding financial ACL permissions requires a cache clear. Does that make sense? I don't know. But I had to jump through some hoops to maintain the original behavior.