mirror of
https://github.com/wekan/wekan.git
synced 2026-03-07 22:22:33 +01:00
Using LINKED_CARDS_ENABLED
This commit is contained in:
parent
07724f99ae
commit
0a1e7006b3
3 changed files with 27 additions and 4 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