mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04:00
hack: Nasty hack for covercard auth
This commit is contained in:
parent
2265d726ae
commit
2288c8ac15
3 changed files with 8 additions and 2 deletions
|
@ -7,7 +7,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(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
|
||||
each labels
|
||||
|
|
|
@ -116,6 +116,12 @@ 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;
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
|
|
|
@ -56,7 +56,7 @@ Attachments = new FilesCollection({
|
|||
if (board.isPublic()) {
|
||||
return true;
|
||||
}
|
||||
return board.hasMember(fileObj.userId);
|
||||
return board.hasMember(this.userId);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue