mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
13 lines
378 B
JavaScript
13 lines
378 B
JavaScript
Meteor.publish('setting', () => {
|
|
return Settings.find({}, {fields:{disableRegistration: 1, productName: 1, hideLogo: 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 [];
|
|
});
|