refactor(terminology): rename user-facing tenant labels to workspace

Align product copy, API docs, Swagger descriptions, and i18n strings
with workspace terminology while keeping internal tenant identifiers
and headers unchanged for API compatibility.
This commit is contained in:
wizardchen
2026-07-14 16:13:49 +08:00
committed by lyingbug
parent e1572b71b9
commit 41975abcc5
161 changed files with 1865 additions and 1770 deletions
@@ -293,8 +293,8 @@ func (s *embedChannelService) chunkAllowedForEmbed(
if chunk == nil || chunk.KnowledgeBaseID == "" {
return false
}
// 显式重校验租户:GetChunkByIDOnly 无租户过滤,且 KBSelectionMode=="all"/默认
// 分支会无条件放行,必须在此挡住跨租户 chunk id 撞库读取他人知识库正文。
// 显式重校验空间:GetChunkByIDOnly 无空间过滤,且 KBSelectionMode=="all"/默认
// 分支会无条件放行,必须在此挡住跨空间 chunk id 撞库读取他人知识库正文。
if ch == nil || chunk.TenantID != ch.TenantID {
return false
}