mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
First user is admin only if not running in sandstorm
This commit is contained in:
parent
1218e114be
commit
28a1dd677c
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ if (Meteor.isServer) {
|
|||
});
|
||||
Accounts.onCreateUser((options, user) => {
|
||||
const userCount = Users.find().count();
|
||||
if (userCount === 0){
|
||||
if (!isSandstorm && userCount === 0 ){
|
||||
user.isAdmin = true;
|
||||
return user;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue