Ghost/ghost/members-api/lib
Simon Backx e7786ca482
🐛 Fixed removing comped subscriptions for members with active subs (#15332)
fixes https://github.com/TryGhost/Team/issues/1859

**Problem:**
When for some reason a member has an active subscription (or legacy comped subscription) for product A, and a comped subscription for product B. You cannot remove comped subscription B.

**Fixed by:**
Updating the API to allow more flexible product changes on members.
- Allow the removal of (comped) products on a member, as long as that product doesn't have a related subscription
- (still) allow the addition of comped products to a member, as long as that member doesn't have other active subscriptions. This matches the existing behaviour, but now this is only checked for added products.
- Includes tests for these edge cases
2022-08-30 17:36:52 +02:00
..
controllers Added missing return in create-stripe-update-session 2022-08-29 14:02:58 +02:00
repositories 🐛 Fixed removing comped subscriptions for members with active subs (#15332) 2022-08-30 17:36:52 +02:00
services Added member attribution to member details page (#15266) 2022-08-19 16:39:18 -04:00
MembersAPI.js Stored geolocation for member on creation (#15320) 2022-08-26 00:45:34 +05:30