app/soc/logic/models/user.py
changeset 1192 b53fa1e05dbd
parent 1161 ad352f3a37d3
child 1193 8d3a7e8d88bd
equal deleted inserted replaced
1191:bb530ca58bc5 1192:b53fa1e05dbd
    69     account = users.get_current_user()
    69     account = users.get_current_user()
    70 
    70 
    71     if not account:
    71     if not account:
    72       return None
    72       return None
    73 
    73 
    74     user = self.getForFields({'account': account}, unique=True)
    74     user = self.getForFields({'account': account, 'status':'valid'}, 
       
    75         unique=True)
    75 
    76 
    76     return user
    77     return user
    77 
    78 
    78   def agreesToSiteToS(self, entity):
    79   def agreesToSiteToS(self, entity):
    79     """Returns indication of User's answer to the site-wide Terms of Service.
    80     """Returns indication of User's answer to the site-wide Terms of Service.