Browse Source

Fix: access denied on second load

David Arnold 4 years ago
parent
commit
1c2dbe5149
1 changed files with 1 additions and 1 deletions
  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);
   },
 });