equal
deleted
inserted
replaced
357 * if no User exists for the logged-in Google Account, or |
357 * if no User exists for the logged-in Google Account, or |
358 * if the user is not even logged in |
358 * if the user is not even logged in |
359 """ |
359 """ |
360 |
360 |
361 try: |
361 try: |
362 # if the current user is invited to create a host profile we allow access |
362 # if the current user is a developer we allow access |
363 checkIsDeveloper(kwargs) |
363 checkIsDeveloper(kwargs) |
364 return |
364 return |
365 except out_of_band.Error: |
365 except out_of_band.Error: |
366 pass |
366 pass |
367 |
367 |
395 * if User is not already a Host for the specified program, or |
395 * if User is not already a Host for the specified program, or |
396 * if User has not agreed to the site-wide ToS, or |
396 * if User has not agreed to the site-wide ToS, or |
397 * if no User exists for the logged-in Google Account, or |
397 * if no User exists for the logged-in Google Account, or |
398 * if the user is not even logged in |
398 * if the user is not even logged in |
399 """ |
399 """ |
|
400 |
|
401 try: |
|
402 # if the current user is a developer we allow access |
|
403 checkIsDeveloper(kwargs) |
|
404 return |
|
405 except out_of_band.Error: |
|
406 pass |
400 |
407 |
401 checkAgreesToSiteToS(kwargs) |
408 checkAgreesToSiteToS(kwargs) |
402 |
409 |
403 user = user_logic.getForCurrentAccount() |
410 user = user_logic.getForCurrentAccount() |
404 |
411 |