equal
deleted
inserted
replaced
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. |