user upgrades: make upgrade page visible to logged out users.

This commit is contained in:
evazion
2019-09-09 17:24:55 -05:00
parent 93256c3ab2
commit 62b89e1f9a
2 changed files with 4 additions and 2 deletions

View File

@@ -106,7 +106,9 @@
</div>
<% if Danbooru.config.stripe_publishable_key %>
<% if CurrentUser.safe_mode? %>
<% if CurrentUser.is_anonymous? %>
<p><%= link_to "Sign up", new_user_path %> or <%= link_to "login", new_session_path(url: new_user_upgrade_path) %> first to upgrade your account.</p>
<% elsif CurrentUser.safe_mode? %>
<%= render "stripe_payment" %>
<% else %>
<%= render "stripe_payment_safebooru" %>