mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Don't allow multiple gold subscriptions.
This commit is contained in:
@@ -916,6 +916,10 @@ class StripeController(GoldPaymentController):
|
||||
if period:
|
||||
plan_id = (g.STRIPE_MONTHLY_GOLD_PLAN if period == 'monthly'
|
||||
else g.STRIPE_YEARLY_GOLD_PLAN)
|
||||
if c.user.has_gold_subscription:
|
||||
form.set_html('.status',
|
||||
_('your account already has a gold subscription'))
|
||||
return
|
||||
else:
|
||||
plan_id = None
|
||||
penny_months, days = months_and_days_from_pennies(pennies)
|
||||
|
||||
Reference in New Issue
Block a user