mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Add support for MongoDB 3-8, detecting which one is in use.
Thanks to xet7 !
This commit is contained in:
parent
1f5a549589
commit
74ccfea570
11 changed files with 1650 additions and 7 deletions
|
|
@ -1836,7 +1836,7 @@ if (Meteor.isServer) {
|
|||
},
|
||||
});
|
||||
Accounts.onCreateUser((options, user) => {
|
||||
const userCount = ReactiveCache.getUsers({}, {}, true).count();
|
||||
const userCount = ReactiveCache.getUsers({}, {}, true).countDocuments();
|
||||
user.isAdmin = userCount === 0;
|
||||
|
||||
if (user.services.oidc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue