summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
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,
+ ''
+ ]}
+ });
+ }
});