Support personal Drive/RAG without a company (#55).
Personal Drive connections and document workspaces are user-owned and no longer require company_id. Company Drive still requires a company manager. Chat/document scope falls back to a personal workspace for solo users instead of rejecting with company_missing.
This commit is contained in:
@@ -214,7 +214,9 @@ Subscription audit (`UserAuthEvent` on the user admin):
|
||||
### Drive / RAG sync ([#47](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/47)-[#53](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/53))
|
||||
|
||||
Personal Google Drive / OneDrive and company Google Shared Drive / SharePoint
|
||||
sync into the existing RAG `Document` pipeline. Every endpoint below is gated
|
||||
sync into the existing RAG `Document` pipeline. Personal connections work for
|
||||
users **without** a company (personal workspace); company connections require a
|
||||
company manager. Every endpoint below is gated
|
||||
by `assert_feature_allowed(user, "rag")` (`SubscriptionPlan.allows_rag` —
|
||||
true for Founders/Pro/Business/Backer, false for Standard by default).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user