mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
Meteor.publish('globalwebhooks', () => {
|
|
const boardId = Integrations.Const.GLOBAL_WEBHOOK_ID;
|
|
return Integrations.find({
|
|
boardId,
|
|
});
|
|
});
|
|
Meteor.publish('setting', () => {
|
|
return Settings.find(
|
|
{},
|
|
{
|
|
fields: {
|
|
disableRegistration: 1,
|
|
productName: 1,
|
|
hideLogo: 1,
|
|
customLoginLogoImageUrl: 1,
|
|
customLoginLogoLinkUrl: 1,
|
|
textBelowCustomLoginLogo: 1,
|
|
automaticLinkedUrlSchemes: 1,
|
|
customTopLeftCornerLogoImageUrl: 1,
|
|
customTopLeftCornerLogoLinkUrl: 1,
|
|
customTopLeftCornerLogoHeight: 1,
|
|
customHTMLafterBodyStart: 1,
|
|
customHTMLbeforeBodyEnd: 1,
|
|
displayAuthenticationMethod: 1,
|
|
defaultAuthenticationMethod: 1,
|
|
spinnerName: 1,
|
|
},
|
|
},
|
|
);
|
|
});
|
|
|
|
Meteor.publish('mailServer', function() {
|
|
if (!Match.test(this.userId, String)) return [];
|
|
const user = Users.findOne(this.userId);
|
|
if (user && user.isAdmin) {
|
|
return Settings.find(
|
|
{},
|
|
{
|
|
fields: {
|
|
'mailServer.host': 1,
|
|
'mailServer.port': 1,
|
|
'mailServer.username': 1,
|
|
'mailServer.enableTLS': 1,
|
|
'mailServer.from': 1,
|
|
},
|
|
},
|
|
);
|
|
}
|
|
return [];
|
|
});
|
|
|