Speed up authentication by trusting g.current_user if set.

This commit is contained in:
2018-01-30 12:40:19 +01:00
parent ed1e348d67
commit 4b5a961e14
5 changed files with 124 additions and 70 deletions

View File

@@ -113,7 +113,7 @@ def create_home_project(user_id, write_access):
# Re-validate the authentication token, so that the put_internal call sees the
# new group created for the project.
authentication.validate_token()
authentication.validate_token(force=True)
# There are a few things in the on_insert_projects hook we need to adjust.