refac/fix: channel files

This commit is contained in:
Timothy Jaeryang Baek
2025-12-10 15:53:45 -05:00
parent 2bccf8350d
commit d1d42128e5
2 changed files with 76 additions and 0 deletions
+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