mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

Only invited user can register in strict mode, Set mail server in admin panel, Switch strict mode in admin panel, Invite people to system in admin panel
19 lines
355 B
JavaScript
19 lines
355 B
JavaScript
Meteor.publish('user-miniprofile', function(userId) {
|
|
check(userId, String);
|
|
|
|
return Users.find(userId, {
|
|
fields: {
|
|
'username': 1,
|
|
'profile.fullname': 1,
|
|
'profile.avatarUrl': 1,
|
|
},
|
|
});
|
|
});
|
|
|
|
Meteor.publish('user-admin', function() {
|
|
return Meteor.users.find(this.userId, {
|
|
fields: {
|
|
isAdmin: 1,
|
|
},
|
|
});
|
|
});
|