summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-12-20 16:12:29 +0200
committerGitHub <noreply@github.com>2019-12-20 16:12:29 +0200
commit492ed2bdc2b7e2e228109f4d411dd99b794b9ff7 (patch)
tree15ee59d15acc4883fe301a476e05df01e20cb62a /server
parentafe7d4991d09192d416cc1f82c85e5febe22487e (diff)
parentc77979ff134b91fa6c7226520c1463a62ea2eac0 (diff)
downloadwekan-492ed2bdc2b7e2e228109f4d411dd99b794b9ff7.tar.gz
wekan-492ed2bdc2b7e2e228109f4d411dd99b794b9ff7.tar.bz2
wekan-492ed2bdc2b7e2e228109f4d411dd99b794b9ff7.zip
Merge pull request #2834 from Akuket/master
Issue #2688
Diffstat (limited to 'server')
-rw-r--r--server/publications/cards.js13
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,
+ ''
+ ]}
+ });
+ }
});