mirror of
https://github.com/wekan/wekan.git
synced 2026-01-31 05:35:16 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
af560bc9b4
9 changed files with 38 additions and 10 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