Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Sam X. Chen 2019-08-10 00:49:07 -04:00
commit af560bc9b4
9 changed files with 38 additions and 10 deletions

View file

@ -260,7 +260,7 @@ Users.attachSchema(
Users.allow({
update(userId) {
const user = Users.findOne(userId);
return user && Meteor.user().isAdmin;
return user; // && Meteor.user().isAdmin; // GitHub issue #2590
},
remove(userId, doc) {
const adminsNumber = Users.find({ isAdmin: true }).count();