Browse Source

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

Thanks to road42 !

Closes #2590
Lauri Ojansivu 6 years ago
parent
commit
9f6d615ee5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/users.js

+ 1 - 1
models/users.js

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