RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix abnormal user invitaion message. (#4081)
Kevin Huf8cef73244f7
diff --git a/api/apps/tenant_app.py b/api/apps/tenant_app.pyindex 0458875308..f0f487a899 100644--- a/api/apps/tenant_app.py+++ b/api/apps/tenant_app.py@@ -62,8 +62,10 @@ def create(tenant_id):user_id = usrs[0].iduser_tenants = UserTenantService.query(user_id=user_id, tenant_id=tenant_id)if user_tenants:- if user_tenants[0].status == UserTenantRole.NORMAL.value:+ if user_tenants[0].role == UserTenantRole.NORMAL:return get_data_error_result(message="This user is in the team already.")+ if user_tenants[0].role == UserTenantRole.OWNER:+ return get_data_error_result(message="This user is the owner of the team.")return get_data_error_result(message="Invitation notification is sent.")UserTenantService.save(