Skip to content
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

dev/mail#89 Fix unreleased regression where civimember is not permitted/enabled #19594

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fixes a regression introduced in #19431 where users with no access to civimember get an error when saving relationships as an api exception is thrown

Before

Uncaught exception results in modal just spinning and if done outside a model it can be seen that ane exception was not caught

After

Exception caught in the function and 0 returned

Technical Details

Comments

This can be particularly confusing on sites where civimember is not enabled at all

…ed/enabled

Fixes a bug where a person with no access to CiviMember will get an exception thrown (and
not caught) rather than receive a result of 0 when checking the memberships
that a contact has access to
@civibot
Copy link

civibot bot commented Feb 14, 2021

(Standard links)

@seamuslee001
Copy link
Contributor

I was able to replicate the regression and confirmed that this fixed the problem merging

@seamuslee001 seamuslee001 merged commit 93aef68 into civicrm:5.35 Feb 15, 2021
@seamuslee001 seamuslee001 deleted the 535m branch February 15, 2021 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants