Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Updating tenant user in organization's context (#307)

Rahul Johny3d2458ab8331
diff --git a/backend/account/authentication_controller.py b/backend/account/authentication_controller.py
index 50111e7de..97cbcff58 100644
--- a/backend/account/authentication_controller.py
+++ b/backend/account/authentication_controller.py
@@ -181,9 +181,10 @@ class AuthenticationController:
if new_organization:
try:
- tenant_user.is_login_onboarding_msg = False
- tenant_user.is_prompt_studio_onboarding_msg = False
- tenant_user.save()
+ with tenant_context(organization):
+ tenant_user.is_login_onboarding_msg = False
+ tenant_user.is_prompt_studio_onboarding_msg = False
+ tenant_user.save()
self.auth_service.frictionless_onboarding(
organization=organization, user=user
)