mirror of
https://github.com/wekan/wekan.git
synced 2026-02-01 06:01:48 +01:00
LINKED_CARDS_ENABLED settings part 3.
In Progress, linked cards not completely disabled yet. Thanks to xet7 !
This commit is contained in:
parent
7a90e89348
commit
e928660bc0
4 changed files with 23 additions and 30 deletions
|
|
@ -1,15 +1,17 @@
|
|||
Meteor.publish('card', cardId => {
|
||||
check(cardId, String);
|
||||
if (process.env.LINKED_CARDS_ENABLED === 'true') {
|
||||
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 });
|
||||
} else {
|
||||
// TODO: test
|
||||
return Cards.find({
|
||||
_id: cardId,
|
||||
linkedId: {$ne: [
|
||||
null,
|
||||
''
|
||||
]}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue