Skip to content

Commit 59568f3

Browse files
authored
fix: Error retrieving file (#7501)
1 parent 44773aa commit 59568f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/oss/serializers/file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _auth_chat(file, token):
254254
if token.login_type.upper() == str(Operate.ANNOTATION_AUTH):
255255
_check_anonymous_login(file.source_id)
256256
## 如果当前用户能访问到这个对话,那么就有资源的访问权限
257-
if QuerySet(Chat).filter(user_id=user_id, id=file.source_id, is_deleted=False).exists():
257+
if QuerySet(Chat).filter(chat_user_id=user_id, id=file.source_id, is_deleted=False).exists():
258258
return
259259
# 非本人:存在分享链接才允许
260260
if not QuerySet(ChatShareLink).filter(chat_id=file.source_id).exists():

0 commit comments

Comments
 (0)