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