app/soc/views/helper/access.py
changeset 965 f96cc3d6120f
parent 960 129efa976d6d
child 970 8b5611d5b053
equal deleted inserted replaced
964:63005fcf12df 965:f96cc3d6120f
   205     * if no User exists for the logged-in Google Account, or
   205     * if no User exists for the logged-in Google Account, or
   206     * if no Google Account is logged in at all
   206     * if no Google Account is logged in at all
   207   """
   207   """
   208   checkIsUser(request, args, kwargs)
   208   checkIsUser(request, args, kwargs)
   209 
   209 
   210   user = user_logic.getForFields({'account': users.get_current_user()},
   210   user = user_logic.getForCurrentAccount()
   211                                  unique=True)
       
   212   
   211   
   213   if user_logic.agreesToSiteToS(user):
   212   if user_logic.agreesToSiteToS(user):
   214     return
   213     return
   215 
   214 
   216   # Would not reach this point of site-wide ToS did not exist, since
   215   # Would not reach this point of site-wide ToS did not exist, since