diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-10 00:49:07 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-10 00:49:07 -0400 |
commit | af560bc9b4dad76f751d159ac83ef6a3d320b553 (patch) | |
tree | a6935b55abff03bd9b7b9065200380353727132d /models | |
parent | c569565ec09b1d4d45d1870701995221ec785aea (diff) | |
parent | 80f1222af47d0cb1a6dd06d9ddfa8fee035901fa (diff) | |
download | wekan-af560bc9b4dad76f751d159ac83ef6a3d320b553.tar.gz wekan-af560bc9b4dad76f751d159ac83ef6a3d320b553.tar.bz2 wekan-af560bc9b4dad76f751d159ac83ef6a3d320b553.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'models')
-rw-r--r-- | models/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index 46e56ad6..870e8fe9 100644 --- a/models/users.js +++ b/models/users.js @@ -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(); |