summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-12-22 09:44:58 +0200
committerLauri Ojansivu <x@xet7.org>2019-12-22 09:44:58 +0200
commite142acfdb745747c020a1bd5b1974b619d5bdb6d (patch)
tree253d3c37cb4caa66167c4c9ad4f3bef2d395b2bb /server
parente928660bc0b1f873696fe5fece988a5be6fc2c4e (diff)
downloadwekan-e142acfdb745747c020a1bd5b1974b619d5bdb6d.tar.gz
wekan-e142acfdb745747c020a1bd5b1974b619d5bdb6d.tar.bz2
wekan-e142acfdb745747c020a1bd5b1974b619d5bdb6d.zip
Remove LINKED_CARDS_ENABLED settings, because it does not work.
Thanks to xet7 !
Diffstat (limited to 'server')
-rw-r--r--server/publications/cards.js21
1 files changed, 4 insertions, 17 deletions
diff --git a/server/publications/cards.js b/server/publications/cards.js
index f850ccfe..61210ce5 100644
--- a/server/publications/cards.js
+++ b/server/publications/cards.js
@@ -1,17 +1,4 @@
-if (process.env.LINKED_CARDS_ENABLED === 'false') {
- Meteor.settings.public.linkedCardsEnabled = 'false';
- //Meteor.publish('card', cardId => {
- // check(cardId, String);
- // // TODO: test
- // return Cards.find({
- // _id: cardId,
- // linkedId: { $ne: [null, ''] },
- // });
- //});
-} else {
- Meteor.settings.public.linkedCardsEnabled = 'true';
- Meteor.publish('card', cardId => {
- check(cardId, String);
- return Cards.find({ _id: cardId });
- });
-}
+Meteor.publish('card', cardId => {
+ check(cardId, String);
+ return Cards.find({ _id: cardId });
+});