-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Show disabled membership types on contact tab #19431
Show disabled membership types on contact tab #19431
Conversation
(Standard links)
|
Bunch of test failures here @mattwire the code looks the right direction here @eileenmcnaughton I'm just thinking about the implications in the changes to |
bc99c6a
to
2853d3e
Compare
@seamuslee001 Oh sorry I've done it again. Those commits should not have been in this PR - now updated. |
165e4a0
to
2833d31
Compare
This change looks right to me now, I just have one minor r-code issue but I don't see any other issues with it @eileenmcnaughton |
Yep I think this is mergeable with the switch @seamuslee001 suggested |
2833d31
to
2dc76e8
Compare
@eileenmcnaughton @seamuslee001 Thanks, tests now passing |
Fix for regression caused by this #19594 |
Overview
Replacement for #17143 / #17435 using API4 and retaining financialacl code.
Contacts may still have disabled membership types. But new memberships of that type cannot be created.
Before
Disabled memberships show in searches but not contact tab.
After
Disabled memberships show in searches and contact tab.
Technical Details
Use API4 MembershipType API to retrieve all membership types that the user has permission for. Added a comment that the code should be moved to the financialacl extension instead.
Set checkPermissions explicitly to TRUE (that is the default) because this allows the API to accurately return the membership types that the user has permission to access. For example another extension could control access.
Comments
@seamuslee001