Fix buggy check for zmirror huddle sending to multiple recipients.

(imported from commit 2abc88338225a8a07c50aaf6eb54862885edcb9e)
This commit is contained in:
Tim Abbott
2013-01-07 11:58:50 -05:00
parent 9b3e4a8bed
commit dd843b3916

View File

@@ -610,8 +610,8 @@ def recipient_for_emails(emails, not_forged_zephyr_mirror, user_profile, sender)
except UserProfile.DoesNotExist:
raise ValidationError("Invalid email '%s'" % (email,))
if not_forged_zephyr_mirror and user_profile.id not in recipient_profile_ids:
raise ValidationError("User not authorized for this query")
if not_forged_zephyr_mirror and user_profile.id not in recipient_profile_ids:
raise ValidationError("User not authorized for this query")
# If the private message is just between the sender and
# another person, force it to be a personal internally