- Partially #2045 revert, continue.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2018-12-05 08:47:48 +02:00
parent e3a40aca6f
commit 167197fcda
4 changed files with 0 additions and 31 deletions

View file

@ -1,28 +0,0 @@
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,
},
});
});
Meteor.publish('user-authenticationMethod', function(match) {
check(match, String);
return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, {
fields: {
'authenticationMethod': 1,
},
});
});

View file

@ -22,7 +22,6 @@ Meteor.publish('user-authenticationMethod', function(match) {
check(match, String);
return Users.find({$or: [{_id: match}, {email: match}, {username: match}]}, {
fields: {
'_id': 1,
'authenticationMethod': 1,
},
});