mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +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):
 | 
			
		||||
            # Or it is private, but your are subscribed
 | 
			
		||||
            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
 | 
			
		||||
            pass
 | 
			
		||||
        elif sender.is_bot and subscribed_to_stream(sender.bot_owner, stream):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user