Skip to content

Commit 10daa64

Browse files
committed
chore: format
1 parent e0d4c3e commit 10daa64

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • backend/open_webui/utils/access_control

backend/open_webui/utils/access_control/files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ def has_access_to_file(
7878
for model in Models.get_models_by_user_id(user.id, permission=access_type, db=db):
7979
knowledge_items = getattr(model.meta, "knowledge", None) or []
8080
for item in knowledge_items:
81-
if isinstance(item, dict) and item.get("type") == "file" and item.get("id") == file.id:
81+
if (
82+
isinstance(item, dict)
83+
and item.get("type") == "file"
84+
and item.get("id") == file.id
85+
):
8286
return True
8387

8488
return False
85-

0 commit comments

Comments
 (0)