From c4cdba0874ba473cb2f22e2e124b2fe046183c70 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 27 Nov 2019 16:20:42 -0600 Subject: [PATCH] Temp disable account upgrades. --- app/controllers/user_upgrades_controller.rb | 2 ++ app/views/user_upgrades/new.html.erb | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controllers/user_upgrades_controller.rb b/app/controllers/user_upgrades_controller.rb index 1c01cc0e0..d87c9ecf6 100644 --- a/app/controllers/user_upgrades_controller.rb +++ b/app/controllers/user_upgrades_controller.rb @@ -4,6 +4,8 @@ class UserUpgradesController < ApplicationController skip_before_action :verify_authenticity_token, only: [:create] def create + raise NotImplementedError + if params[:stripeToken] create_stripe end diff --git a/app/views/user_upgrades/new.html.erb b/app/views/user_upgrades/new.html.erb index efcc9d25d..d27c9a395 100644 --- a/app/views/user_upgrades/new.html.erb +++ b/app/views/user_upgrades/new.html.erb @@ -92,14 +92,16 @@ <% end %>
- <% if params[:user_id] %> + <% if true %> +

Account upgrades are temporarily disabled. Upgrades will be available again after December 1st.

+ <% elsif params[:user_id] %>

You are gifting this account upgrade to <%= link_to user.pretty_name, user_path(params[:user_id]) %>.

<% else %>

You can also upgrade someone else's account for the same price. The easiest way is to go to their profile page and look for a "Gift Upgrade" link.

<% end %>
- <% if Danbooru.config.stripe_publishable_key %> + <% if false %> <% if CurrentUser.is_anonymous? %>

<%= link_to "Sign up", new_user_path %> or <%= link_to "login", new_session_path(url: new_user_upgrade_path) %> first to upgrade your account.

<% elsif CurrentUser.safe_mode? %>