瀏覽代碼

Fix: access denied on second load

David Arnold 4 年之前
父節點
當前提交
1c2dbe5149
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/attachments.js

+ 1 - 1
models/attachments.js

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