Fixed a comment typo and possible bug in mail_dispatcher.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 19 Apr 2009 10:28:35 +0000
changeset 2237 3cfaa7dfd9e0
parent 2236 8a74f5cc12b1
child 2238 71f4d7642afb
Fixed a comment typo and possible bug in mail_dispatcher. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/logic/mail_dispatcher.py
--- 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