app/soc/views/helper/access.py
changeset 895 e70ffd079438
parent 892 c3cdb581ffd2
child 914 6ec8dd2a73b3
equal deleted inserted replaced
894:11afeeba198c 895:e70ffd079438
   223     AccessViolationResponse:
   223     AccessViolationResponse:
   224     * if User is not a Developer, or
   224     * if User is not a Developer, or
   225     * if no User exists for the logged-in Google Account, or
   225     * if no User exists for the logged-in Google Account, or
   226     * if no Google Account is logged in at all
   226     * if no Google Account is logged in at all
   227   """
   227   """
   228   # Developers need to bypass the ToS check to avoid "chicken-and-egg" problem
   228 
   229   checkIsUser(request, args, kwargs)
   229   checkAgreesToSiteToS(request, args, kwargs)
   230 
   230 
   231   if accounts.isDeveloper(account=users.get_current_user()):
   231   if accounts.isDeveloper(account=users.get_current_user()):
   232     return
   232     return
   233 
   233 
   234   login_message_fmt = DEF_DEV_LOGOUT_LOGIN_MSG_FMT % {
   234   login_message_fmt = DEF_DEV_LOGOUT_LOGIN_MSG_FMT % {