mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01: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({
|
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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue