mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac/fix: knowledge permission
This commit is contained in:
parent
d5824b1b49
commit
a51f0c30ec
1 changed files with 1 additions and 0 deletions
|
|
@ -621,6 +621,7 @@ def get_sources_from_items(
|
|||
|
||||
if knowledge_base and (
|
||||
user.role == "admin"
|
||||
or knowledge_base.user_id == user.id
|
||||
or has_access(user.id, "read", knowledge_base.access_control)
|
||||
):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue