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.

support: Remove stale comment and check for POST keys.

Lauryn Menard322933274e33
diff --git a/corporate/views/support.py b/corporate/views/support.py
index 9e25834368e..5a2735f2717 100644
--- a/corporate/views/support.py
+++ b/corporate/views/support.py
@@ -450,11 +450,6 @@ def support(
acting_user = request.user
assert isinstance(acting_user, UserProfile)
if settings.BILLING_ENABLED and request.method == "POST":
- # We check that request.POST only has two keys in it: The
- # realm_id and a field to change.
- keys = set(request.POST.keys())
- keys.discard("csrfmiddlewaretoken")
-
assert realm_id is not None
realm = Realm.objects.get(id=realm_id)