hack: Nasty hack for covercard auth

This commit is contained in:
David Arnold 2020-10-20 17:44:04 -05:00
parent 480218d091
commit c3e1744954
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
3 changed files with 8 additions and 2 deletions

View file

@ -11,7 +11,7 @@ template(name="minicard")
.handle
.fa.fa-arrows
if cover
.minicard-cover(style="background-image: url('{{cover.link 'original' '/'}}');")
.minicard-cover(style="background-image: url('{{cover.link 'original' '/'}}?dummyReloadAfterSessionEstablished={{sess}}');")
if labels
.minicard-labels
each labels

View file

@ -66,4 +66,10 @@ Template.minicard.helpers({
return false;
}
},
// XXX resolve this nasty hack for https://github.com/veliovgroup/Meteor-Files/issues/763
sess() {
return Meteor.connection && Meteor.connection._lastSessionId
? Meteor.connection._lastSessionId
: null;
},
});

View file

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