From dd843b3916f5f6d94e9421052bf149f0e800b365 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 7 Jan 2013 11:58:50 -0500 Subject: [PATCH] Fix buggy check for zmirror huddle sending to multiple recipients. (imported from commit 2abc88338225a8a07c50aaf6eb54862885edcb9e) --- zephyr/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/views.py b/zephyr/views.py index ec348b77e3..0f2af93b2e 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -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