summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-09 01:42:23 +0300
committerLauri Ojansivu <x@xet7.org>2019-08-09 01:42:23 +0300
commit9f6d615ee5bbdb7552e6bdcae75a76a7f74fef7a (patch)
tree3df97ed77c93d7225e3406880e1da8a3b2af68c9 /models/users.js
parent520ae551c643885d0d5b8ba39cd8de0119f6ef11 (diff)
downloadwekan-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.js2
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();