mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 06:00:00 +08:00
Fix the bug that prevented modifying dataset_ids
(#3784)
### What problem does this PR solve? Fix the bug that prevented modifying `dataset_ids`. #3772 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
This commit is contained in:
parent
7058ac0041
commit
3ee9ca749d
@ -161,7 +161,7 @@ def update(tenant_id,chat_id):
|
|||||||
return get_error_data_result("`datasets` can't be empty")
|
return get_error_data_result("`datasets` can't be empty")
|
||||||
if ids:
|
if ids:
|
||||||
for kb_id in ids:
|
for kb_id in ids:
|
||||||
kbs = KnowledgebaseService.accessible(kb_id=chat_id, user_id=tenant_id)
|
kbs = KnowledgebaseService.accessible(kb_id=kb_id, user_id=tenant_id)
|
||||||
if not kbs:
|
if not kbs:
|
||||||
return get_error_data_result(f"You don't own the dataset {kb_id}")
|
return get_error_data_result(f"You don't own the dataset {kb_id}")
|
||||||
kbs = KnowledgebaseService.query(id=kb_id)
|
kbs = KnowledgebaseService.query(id=kb_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user