Browse Source

Fix: access denied on second load

David Arnold 4 năm trước cách đây
mục cha
commit
1c2dbe5149
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/attachments.js

+ 1 - 1
models/attachments.js

@@ -56,7 +56,7 @@ Attachments = new FilesCollection({
     if (board.isPublic()) {
       return true;
     }
-    return board.hasMember(this.userId);
+    return board.hasMember(fileObj.userId);
   },
 });