mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 20:19:24 +08:00
Go: add context, part12 (#17435)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -142,7 +142,7 @@ func (s *File2DocumentService) LinkToDatasets(ctx context.Context, userID string
|
||||
|
||||
// ── 5. Validate KB permissions ────────────────────────────────────────────
|
||||
for _, kb := range kbMap {
|
||||
if !service.HasKBTeamPermission(kb, userID, dao.NewTenantDAO()) {
|
||||
if !service.HasKBTeamPermission(ctx, kb, userID, dao.NewTenantDAO()) {
|
||||
return ErrLinkNoAuthorization
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user