diff --git a/r2/r2/controllers/front.py b/r2/r2/controllers/front.py index 60ac768c1..87fc2410d 100755 --- a/r2/r2/controllers/front.py +++ b/r2/r2/controllers/front.py @@ -1469,10 +1469,12 @@ class FormsController(RedditController): start_over = True if start_over: + can_subscribe = not c.user.has_gold_subscription return BoringPage(_("reddit gold"), show_sidebar=False, content=Gold(goldtype, period, months, signed, - recipient, recipient_name)).render() + recipient, recipient_name, + can_subscribe=can_subscribe)).render() else: payment_blob = dict(goldtype=goldtype, account_id=c.user._id, diff --git a/r2/r2/lib/pages/pages.py b/r2/r2/lib/pages/pages.py index 52dcd9689..207d892bc 100644 --- a/r2/r2/lib/pages/pages.py +++ b/r2/r2/lib/pages/pages.py @@ -2127,7 +2127,7 @@ class GoldThanks(Templated): class Gold(Templated): def __init__(self, goldtype, period, months, signed, - recipient, recipient_name): + recipient, recipient_name, can_subscribe=True): if c.user.employee: user_creddits = 50 @@ -2139,7 +2139,8 @@ class Gold(Templated): recipient_name = recipient_name, user_creddits = user_creddits, bad_recipient = - bool(recipient_name and not recipient)) + bool(recipient_name and not recipient), + can_subscribe=can_subscribe) class GoldPayment(Templated): diff --git a/r2/r2/templates/gold.html b/r2/r2/templates/gold.html index 8c1d3adcd..a5ddf4c69 100644 --- a/r2/r2/templates/gold.html +++ b/r2/r2/templates/gold.html @@ -86,8 +86,10 @@