diff --git a/fence/blueprints/login/ras.py b/fence/blueprints/login/ras.py index fd2046af7..88f52cc4c 100644 --- a/fence/blueprints/login/ras.py +++ b/fence/blueprints/login/ras.py @@ -57,11 +57,6 @@ def post_login(self, user=None, token_result=None, id_from_idp=None): # do an on-the-fly usersync for this user to give them instant access after logging in through RAS # if GLOBAL_PARSE_VISAS_ON_LOGIN is true then we want to run it regardless of whether or not the client sent parse_visas on request if parse_visas: - # Close previous db sessions. Leaving it open causes a race condition where we're - # viewing user.project_access while trying to update it in usersync - # not closing leads to partially updated records - current_session.close() - # get passport then call sync on it try: passport = (