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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user