mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
16 lines
No EOL
443 B
JavaScript
16 lines
No EOL
443 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) {
|
|
if(user.services && user.services.twitter){
|
|
return !!user.profile.email;
|
|
}else{
|
|
return true;
|
|
}
|
|
} |