app/soc/logic/site/id_user.py
changeset 301 5d6d106afb23
parent 299 a1cc853a56e5
child 305 972d28056d9d
equal deleted inserted replaced
300:d36b597ef29d 301:5d6d106afb23
    88 
    88 
    89   # If no id is specified, default to logged in user
    89   # If no id is specified, default to logged in user
    90   if not id:
    90   if not id:
    91     id = current_id
    91     id = current_id
    92 
    92 
    93   user = soc.logic.user_logic.getFromFields(id=id)
    93   user = soc.logic.user_logic.getFromFields(email=id)
    94 
    94 
    95   if not user:
    95   if not user:
    96     # no User entity for this Google Account, and id is not the currently
    96     # no User entity for this Google Account, and id is not the currently
    97     # logged-in user, so there is no conclusive way to check the
    97     # logged-in user, so there is no conclusive way to check the
    98     # Administration->Developers list in the App Engine console
    98     # Administration->Developers list in the App Engine console