mirror of https://github.com/zulip/zulip.git
remote_billing_page: Allow deactivation logins with realm plans.
This commit is contained in:
parent
d50e9b5453
commit
940c2a1ded
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue