Finished implementing basic sharing

This commit is contained in:
Thaum
2015-04-14 14:06:50 +00:00
parent ccbe71514e
commit d785e1ff59
5 changed files with 73 additions and 36 deletions

View File

@@ -0,0 +1,7 @@
Meteor.methods({
"getUserId": function(username){
if(!username) return;
var user = Meteor.users.findOne({$or: [{username: username}, {"emails.address": username}]});
return user && user._id;
}
});