diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-08-09 01:42:23 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-08-09 01:42:23 +0300 |
commit | 9f6d615ee5bbdb7552e6bdcae75a76a7f74fef7a (patch) | |
tree | 3df97ed77c93d7225e3406880e1da8a3b2af68c9 /models/users.js | |
parent | 520ae551c643885d0d5b8ba39cd8de0119f6ef11 (diff) | |
download | wekan-9f6d615ee5bbdb7552e6bdcae75a76a7f74fef7a.tar.gz wekan-9f6d615ee5bbdb7552e6bdcae75a76a7f74fef7a.tar.bz2 wekan-9f6d615ee5bbdb7552e6bdcae75a76a7f74fef7a.zip |
Fix bug on editing users informations, switching to other view, staring a board.
Thanks to road42 !
Closes #2590
Diffstat (limited to 'models/users.js')
-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(); |