wekan/server/publications/settings.js
Lauri Ojansivu 4cb25a5bcf - Custom Product Name in Admin Panel / Layout. In Progress, setting does not affect change UI yet. Thanks to xet7 !
- Fix LDAP User Search Scope. Thanks to Vnimos and Akuket ! Related #119
- Fix Save Admin Panel STMP password. Thanks to saurabharch and xet7 ! Closes #1856
2018-10-24 11:39:45 +03:00

13 lines
365 B
JavaScript

Meteor.publish('setting', () => {
return Settings.find({}, {fields:{disableRegistration: 1, productName: 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: 1}});
}
return [];
});