diff options
author | Guillaume <gcassou@sii.fr> | 2019-11-29 14:48:44 +0100 |
---|---|---|
committer | Guillaume <gcassou@sii.fr> | 2019-11-29 14:48:44 +0100 |
commit | 0a1e7006b38979fe40653834aa037341c6ac3355 (patch) | |
tree | 0a487d70b9357f7bc741e593d8b242a3f85ed4e2 /server | |
parent | 07724f99ae909b044f17bc3c0b1f800237747f86 (diff) | |
download | wekan-0a1e7006b38979fe40653834aa037341c6ac3355.tar.gz wekan-0a1e7006b38979fe40653834aa037341c6ac3355.tar.bz2 wekan-0a1e7006b38979fe40653834aa037341c6ac3355.zip |
Using LINKED_CARDS_ENABLED
Diffstat (limited to 'server')
-rw-r--r-- | server/publications/cards.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server/publications/cards.js b/server/publications/cards.js index 61210ce5..f326ea04 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -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, + '' + ]} + }); + } }); |