mirror of
https://github.com/wekan/wekan.git
synced 2026-02-01 22:21:47 +01:00
commit
492ed2bdc2
8 changed files with 44 additions and 6 deletions
|
|
@ -1,4 +1,15 @@
|
|||
Meteor.publish('card', cardId => {
|
||||
check(cardId, String);
|
||||
return Cards.find({ _id: cardId });
|
||||
if (process.env.LINKED_CARDS_ENABLED === 'true') {
|
||||
return Cards.find({ _id: cardId });
|
||||
} else {
|
||||
// TODO: test
|
||||
return Cards.find({
|
||||
_id: cardId,
|
||||
linkedId: {$ne: [
|
||||
null,
|
||||
''
|
||||
]}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue