always approve the first / root user
This commit is contained in:
parent
f36a1a5701
commit
37ff2bb0ca
|
@ -133,7 +133,7 @@ export class SignupService {
|
||||||
host: this.utilityService.toPunyNullable(host),
|
host: this.utilityService.toPunyNullable(host),
|
||||||
token: secret,
|
token: secret,
|
||||||
isRoot: isTheFirstUser,
|
isRoot: isTheFirstUser,
|
||||||
approved: opts.approved ?? !this.meta.approvalRequiredForSignup,
|
approved: isTheFirstUser || (opts.approved ?? !this.meta.approvalRequiredForSignup),
|
||||||
signupReason: reason,
|
signupReason: reason,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue