refac/fix: knowledge permission
This commit is contained in:
1 parent
d5824b1b49
commit
a51f0c30ec
1 file changed
+1
@@ -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)
|
||||
):
|
||||
|
||||
|
||||
Reference in new issue
Block a user