mirror of
https://github.com/wekan/wekan.git
synced 2025-12-25 03:40:13 +01:00
- 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
13 lines
365 B
JavaScript
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 [];
|
|
});
|