app/soc/logic/accounts.py
changeset 1192 b53fa1e05dbd
parent 749 134d9954f4dc
child 1307 091a21cf3627
equal deleted inserted replaced
1191:bb530ca58bc5 1192:b53fa1e05dbd
    66 
    66 
    67   if not account:
    67   if not account:
    68     account = current
    68     account = current
    69 
    69 
    70   if not user:
    70   if not user:
    71     user = models.user.logic.getForFields({'account': account}, unique=True)
    71     user = models.user.logic.getForFields(
       
    72         {'account': account, 'status': 'valid'}, unique=True)
    72 
    73 
    73   if not user:
    74   if not user:
    74     # no User entity for this Google Account, and account is not the
    75     # no User entity for this Google Account, and account is not the
    75     # currently logged-in user, so there is no conclusive way to check the
    76     # currently logged-in user, so there is no conclusive way to check the
    76     # Administration->Developers list in the App Engine console
    77     # Administration->Developers list in the App Engine console