remote_billing_page: Allow deactivation logins with realm plans.

This commit is contained in:
Alex Vandiver 2023-12-15 21:38:54 +00:00 committed by Tim Abbott
parent d50e9b5453
commit 940c2a1ded
1 changed files with 4 additions and 1 deletions

View File

@ -690,7 +690,10 @@ def remote_billing_legacy_server_from_login_confirmation_link(
# don't need a pretty error. # don't need a pretty error.
raise JsonableError(_("You must accept the Terms of Service to proceed.")) raise JsonableError(_("You must accept the Terms of Service to proceed."))
if has_live_plan_for_any_remote_realm_on_server(remote_server): if (
has_live_plan_for_any_remote_realm_on_server(remote_server)
and prereg_object.next_page != "deactivate"
):
return render( return render(
request, request,
"corporate/remote_server_login_error_for_any_realm_on_active_plan.html", "corporate/remote_server_login_error_for_any_realm_on_active_plan.html",