mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Fix bug on editing users informations, switching to other view, staring a board.
Thanks to road42 ! Closes #2590
This commit is contained in:
parent
520ae551c6
commit
9f6d615ee5
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue