Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream: Allow new bot to send message if its owner is full member.
sahil83981ae29d461b8
diff --git a/zerver/lib/streams.py b/zerver/lib/streams.pyindex fd984be121c..2ee28d4b22a 100644--- a/zerver/lib/streams.py+++ b/zerver/lib/streams.py@@ -207,7 +207,7 @@ def access_stream_for_send_message(elif stream.stream_post_policy == Stream.STREAM_POST_POLICY_RESTRICT_NEW_MEMBERS:if sender.is_bot and (sender.bot_owner is None or sender.bot_owner.is_new_member):raise JsonableError(_("New members cannot send to this stream."))- elif sender.is_new_member:+ elif not sender.is_bot and sender.is_new_member:raise JsonableError(_("New members cannot send to this stream."))if stream.is_web_public: