billing: Guard billing by BILLING_ENABLED rather than DEVELOPMENT.

This commit is contained in:
Rishi Gupta 2018-08-31 17:40:20 -07:00
parent 336c2cee20
commit 24b22e7e75
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ def unsign_and_check_upgrade_parameters(user: UserProfile, plan_nickname: str,
@zulip_login_required
def initial_upgrade(request: HttpRequest) -> HttpResponse:
if not settings.DEVELOPMENT:
if not settings.BILLING_ENABLED:
return render(request, "404.html")
user = request.user