Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't send notifications to inactive (i.e., not confirmed) users

Signed-off-by: Brian Rosner <brosner@gmail.com>
  • Loading branch information...
commit 6a1db8f2f8329746af8a7d43a993bb1f9a68bc39 1 parent 5f29902
@diox diox authored brosner committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  notification/models.py
View
2  notification/models.py
@@ -322,7 +322,7 @@ def send_now(users, label, extra_context=None, on_site=True, sender=None):
notice = Notice.objects.create(recipient=user, message=messages['notice.html'],
notice_type=notice_type, on_site=on_site, sender=sender)
- if should_send(user, notice_type, "1") and user.email: # Email
+ if should_send(user, notice_type, "1") and user.email and user.is_active: # Email
recipients.append(user.email)
send_mail(subject, body, settings.DEFAULT_FROM_EMAIL, recipients)

0 comments on commit 6a1db8f

Please sign in to comment.
Something went wrong with that request. Please try again.