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.

streams: Remove redundant asserts in do_change_stream_permission.

Sahil Batra6a860c74d6f6
diff --git a/zerver/actions/streams.py b/zerver/actions/streams.py
index ef1df7efec1..6599385de5e 100644
--- a/zerver/actions/streams.py
+++ b/zerver/actions/streams.py
@@ -851,8 +851,6 @@ def do_change_stream_permission(
# But absent such a refactoring, it's important to assert that
# we're not requesting an unsupported configurations.
if is_web_public:
- assert history_public_to_subscribers is not False
- assert invite_only is not True
stream.is_web_public = True
stream.invite_only = False
stream.history_public_to_subscribers = True