mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 11:01:38 -05:00
12 lines
No EOL
371 B
JavaScript
12 lines
No EOL
371 B
JavaScript
getDisplayNameById = function(userId){
|
|
getDisplayName(Meteor.users.findOne(userId));
|
|
}
|
|
getDisplayName = function(user){
|
|
return (user.profile && user.profile.name) ? user.profile.name : user.username
|
|
}
|
|
getCurrentUserEmail = function(){
|
|
return Meteor.user() ? Meteor.user().emails[0].address : '';
|
|
}
|
|
userProfileComplete = function(user) {
|
|
return !!user.profile.email;
|
|
} |