-
-
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
Fix malformed query when user with no access to any financial acls accesses civimember search #23228
Conversation
(Standard links)
|
@eileenmcnaughton so if I'm understanding this correctly the malformed sql is |
@colemanw it winds up as 'membership_type_id = 0' - I think maybe it got filtered out of something - I'm not sure exactly now cos my brain didn't hold it - but on r-run it was pretty clear that it failed before & worked after! |
@eileenmcnaughton ok but I still can't make sense of line 228: |
Ok - here was the bug I just hit... #23235 |
…cesses civimember search
@colemanw I've fixed it to return '=0' when civiMember is disabled too - I couldn't actually hit it this time - but it should be the same for when CiviMember is disabled as when there are no available membership types - MembershipType api still works 'correctly' with civimember disabled - although I think it's kinda tough for code writers that it throws an exception (even with checkPermissions=FALSE I think) in v4 api |
Ok. I see that this function is supposed to return the latter 2/3 of a WHERE clause (the operator and the value) and now it consistently does so. |
@eileenmcnaughton the thinking behind it is that we are moving components to be more extension-like (and even moving some components to be extensions) so APIv4 helps with that transition. In v3 disabled extensions would throw an exception if you tried their api, but disabled components would not. In v4 it's consistent: calling the |
hmm ok - .... |
Overview
Before
After
Technical Details
The contact cannot view any memberships but returning 0 winds up dropped - '= 0' works...
Comments