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.

CVE-2022-31017: Fix edit event exposure in protected-history streams.

Anders Kaseorg20f9293f1f5a
diff --git a/zerver/actions/message_edit.py b/zerver/actions/message_edit.py
index 44f8ae687fa..1772f4aceb9 100644
--- a/zerver/actions/message_edit.py
+++ b/zerver/actions/message_edit.py
@@ -687,7 +687,7 @@ def do_update_message(
# where possible.
users_to_be_notified = list(map(user_info, ums))
if stream_being_edited is not None:
- if stream_being_edited.is_history_public_to_subscribers:
+ if stream_being_edited.is_history_public_to_subscribers():
subscriptions = get_active_subscriptions_for_stream_id(
stream_id, include_deactivated_users=False
)