Fixed a comment typo and possible bug in mail_dispatcher.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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