]> git.parisson.com Git - django-postman.git/commitdiff
email even if user inactive
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 11:55:05 +0000 (13:55 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 11:55:05 +0000 (13:55 +0200)
postman/utils.py

index 2c4c6d7832e0b0cb3c52a5f93cb59ab0e6ce5fd0..9359bc524f47ed4cc688f482aa1f6fd8ab3deeb8 100644 (file)
@@ -91,6 +91,6 @@ def notify_user(object, action):
     if notification:
         notification.send(users=[user], label=label, extra_context={'message': object, 'action': action})
     else:
-        if not DISABLE_USER_EMAILING and user.email and user.is_active:
+        if not DISABLE_USER_EMAILING and user.email:
             email('postman/email_user_subject.txt', 'postman/email_user.txt',[user.email], object, action)