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.

events: Remove unnecessary asserts.

Alex Vandiver75001987d2de
diff --git a/zerver/lib/events.py b/zerver/lib/events.py
index 3ed73673fcb..be753e4e816 100644
--- a/zerver/lib/events.py
+++ b/zerver/lib/events.py
@@ -951,12 +951,6 @@ def fetch_initial_state_data(
if want("device"):
state["devices"] = {} if user_profile is None else get_devices(user_profile)
- if user_profile is None:
- # To ensure we have the correct user state set.
- assert state["is_admin"] is False
- assert state["is_owner"] is False
- assert state["is_guest"] is True
-
return state