Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stripe: Remove now-unreachable code.

Alex Vandiverb5f6be2599de
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 38d2d7ce188..7e4b0617656 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -3596,11 +3596,8 @@ class BillingSession(ABC):
except Session.DoesNotExist:
raise JsonableError(_("Session not found"))
- if (
- session.type == Session.CARD_UPDATE_FROM_BILLING_PAGE
- and not self.has_billing_access()
- ):
- raise JsonableError(_("Insufficient permission"))
+ if session.type == Session.CARD_UPDATE_FROM_BILLING_PAGE:
+ assert self.has_billing_access()
return {"session": session.to_dict()}
stripe_invoice_id = event_status_request.stripe_invoice_id