mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
Fix buggy check for zmirror huddle sending to multiple recipients.
(imported from commit 2abc88338225a8a07c50aaf6eb54862885edcb9e)
This commit is contained in:
@@ -610,8 +610,8 @@ def recipient_for_emails(emails, not_forged_zephyr_mirror, user_profile, sender)
|
|||||||
except UserProfile.DoesNotExist:
|
except UserProfile.DoesNotExist:
|
||||||
raise ValidationError("Invalid email '%s'" % (email,))
|
raise ValidationError("Invalid email '%s'" % (email,))
|
||||||
|
|
||||||
if not_forged_zephyr_mirror and user_profile.id not in recipient_profile_ids:
|
if not_forged_zephyr_mirror and user_profile.id not in recipient_profile_ids:
|
||||||
raise ValidationError("User not authorized for this query")
|
raise ValidationError("User not authorized for this query")
|
||||||
|
|
||||||
# If the private message is just between the sender and
|
# If the private message is just between the sender and
|
||||||
# another person, force it to be a personal internally
|
# another person, force it to be a personal internally
|
||||||
|
|||||||
Reference in New Issue
Block a user