Authenticated users with an existing subscription are able to purchase a new plan (instead of changing the plan) when single-plan mode is enabled.

Created on 24 November 2023, 7 months ago
Updated 30 March 2024, 3 months ago

Problem/Motivation

When single-plan mode is enabled and an authenticated user visits /subscription/signup they are able to create a new subscription on the same account.

My site is set up with Single-plan mode enabled, and "multiple subscriptions to the same plan" is unchecked.

My client sent out a marketing email linking to /subscription/signup. Authenticated users with an existing subscription, thinking they will be upgrading to a higher plan, are having a new subscription created on their account, resulting in an account with two active subscription plans.

Proposed resolution

If single-plan mode is enabled and an authenticated user with an active subscription visits /subscription/signup, either show an access denied page, or redirect to the change plan page.

In my case I would prefer it redirected to the change plan page.

I will try to provide a patch.

πŸ› Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024