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.

realm_settings: Remove 'enable_spectator_access' from update_fields.

Prakhar Pratyush276648ef872d
diff --git a/zerver/actions/realm_settings.py b/zerver/actions/realm_settings.py
index 12d80b72fc9..8541ec14636 100644
--- a/zerver/actions/realm_settings.py
+++ b/zerver/actions/realm_settings.py
@@ -784,13 +784,7 @@ def do_change_realm_plan_type(
update_first_visible_message_id(realm)
- realm.save(
- update_fields=[
- "_max_invites",
- "enable_spectator_access",
- "message_visibility_limit",
- ]
- )
+ realm.save(update_fields=["_max_invites", "message_visibility_limit"])
event = {
"type": "realm",