Fix bug on editing users informations, switching to other view, staring a board.

Thanks to road42 !

Closes #2590
This commit is contained in:
Lauri Ojansivu 2019-08-09 01:42:23 +03:00
parent 520ae551c6
commit 9f6d615ee5

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();