Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Enable billing system in production.
Tim Abbott97799b279bdd
diff --git a/corporate/lib/decorator.py b/corporate/lib/decorator.pyindex 2325361f5d5..dde25911a3f 100644--- a/corporate/lib/decorator.py+++ b/corporate/lib/decorator.py@@ -24,7 +24,7 @@ ParamT = ParamSpec("ParamT")def is_self_hosting_management_subdomain(request: HttpRequest) -> bool:subdomain = get_subdomain(request)- return settings.DEVELOPMENT and subdomain == settings.SELF_HOSTING_MANAGEMENT_SUBDOMAIN+ return subdomain == settings.SELF_HOSTING_MANAGEMENT_SUBDOMAINdef self_hosting_management_endpoint(diff --git a/corporate/views/remote_billing_page.py b/corporate/views/remote_billing_page.pyindex e380f50e97c..e47c7a70317 100644--- a/corporate/views/remote_billing_page.py+++ b/corporate/views/remote_billing_page.py@@ -85,8 +85,6 @@ def remote_realm_billing_entry(uri_scheme: Literal["http://", "https://"] = "https://",next_page: VALID_NEXT_PAGES_TYPE = None,) -> HttpResponse:- if not settings.DEVELOPMENT:- return render(request, "404.html", status=404)try:remote_realm = RemoteRealm.objects.get(uuid=realm.uuid, server=remote_server)except RemoteRealm.DoesNotExist: