refac/fix: channel files

This commit is contained in:
Timothy Jaeryang Baek committed 2025-12-10 15:53:45 -05:00
1 parent 2bccf8350d
commit d1d42128e5
2 files changed
+76

No files matched your search

+4
View File
@@ -92,6 +92,10 @@ def has_access_to_file(
if knowledge_base.id == knowledge_base_id:
return True
channels = Channels.get_channels_by_file_id_and_user_id(file_id, user.id)
if access_type == "read" and channels:
return True
return False