Fix issue where users could login to their team even though they were already on the team (#2198)

* Fix issue where users couldn't login to their team even though they were already on the team
This commit is contained in:
Kevin Chung
2022-10-14 04:26:00 -04:00
committed by GitHub
parent eb66034aae
commit 96e6d66120

View File

@@ -512,7 +512,7 @@ def oauth_redirect():
)
return redirect(url_for("auth.login"))
if get_config("user_mode") == TEAMS_MODE:
if get_config("user_mode") == TEAMS_MODE and user.team_id is None:
team_id = api_data["team"]["id"]
team_name = api_data["team"]["name"]