zengenuity / civicrm_groupprice

CiviCRM extension that allows you to limit the display of individual prices in price sets to specific groups. This can be used to implement members-only pricing for events, as well as other use cases.
Other
3 stars 9 forks source link

Fix multiple group issue #16

Open rbaugh opened 2 years ago

rbaugh commented 2 years ago

This is an updated PR to the closed PR #15. This PR still adds in multiple checks for a contact, but also flips some logic on whether the contact is in a group or not.

The group check swap was because of an issue where someone could be in multiple groups. Since we know at this point an ACL exists, we force the option to be hidden. Then if someone is in one of any groups assigned to the ACL, then it changes it to be visible.

rbaugh commented 2 years ago

This should fix issue #13 as well