mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
hack: Nasty hack for covercard auth
This commit is contained in:
parent
1da242ae35
commit
a15ee068d1
3 changed files with 8 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ template(name="minicard")
|
||||||
.handle
|
.handle
|
||||||
.fa.fa-arrows
|
.fa.fa-arrows
|
||||||
if cover
|
if cover
|
||||||
.minicard-cover(style="background-image: url('{{cover.link 'original' '/'}}');")
|
.minicard-cover(style="background-image: url('{{cover.link 'original' '/'}}?dummyReloadAfterSessionEstablished={{sess}}');")
|
||||||
if labels
|
if labels
|
||||||
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
|
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
|
||||||
each labels
|
each labels
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,12 @@ Template.minicard.helpers({
|
||||||
return false;
|
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({
|
BlazeComponent.extendComponent({
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ Attachments = new FilesCollection({
|
||||||
if (board.isPublic()) {
|
if (board.isPublic()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return board.hasMember(fileObj.userId);
|
return board.hasMember(this.userId);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue