mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
Fix traceback sending bot messages to invite-only stream.
(imported from commit b9af67e87d8b7d52bddb8fa576af8fe9326ba13c)
This commit is contained in:
@@ -716,7 +716,8 @@ def check_message(sender, client, message_type_name, message_to,
|
|||||||
elif subscribed_to_stream(sender, stream):
|
elif subscribed_to_stream(sender, stream):
|
||||||
# Or it is private, but your are subscribed
|
# Or it is private, but your are subscribed
|
||||||
pass
|
pass
|
||||||
elif is_super_user(sender) or is_super_user(forwarder_user_profile):
|
elif is_super_user(sender) or (forwarder_user_profile is not None and
|
||||||
|
is_super_user(forwarder_user_profile)):
|
||||||
# Or this request is being done on behalf of a super user
|
# Or this request is being done on behalf of a super user
|
||||||
pass
|
pass
|
||||||
elif sender.is_bot and subscribed_to_stream(sender.bot_owner, stream):
|
elif sender.is_bot and subscribed_to_stream(sender.bot_owner, stream):
|
||||||
|
|||||||
Reference in New Issue
Block a user