app/soc/logic/mail_dispatcher.py
changeset 2237 3cfaa7dfd9e0
parent 2073 6eb9b4652c80
child 2242 0326d394dce5
--- a/app/soc/logic/mail_dispatcher.py	Sun Apr 19 10:26:11 2009 +0000
+++ b/app/soc/logic/mail_dispatcher.py	Sun Apr 19 10:28:35 2009 +0000
@@ -148,11 +148,11 @@
   # use the email address of the current logged in user
   account = accounts.getCurrentAccount(normalize=False)
 
-  # we need to retrieve account seperately, as user_logic normalizes it
+  # we need to retrieve account separately, as user_logic normalizes it
   # and the GAE admin API is case sensitive
   user_entity = user_logic.logic.getForAccount(account)
 
-  if not account:
+  if not (account and user_entity):
     logging.warning('Non-Authenticated user triggered getDefaultMailSender')
     return None