Finished implementing basic sharing
This commit is contained in:
7
rpg-docs/lib/functions/shareCharacter.js
Normal file
7
rpg-docs/lib/functions/shareCharacter.js
Normal 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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user