always approve the first / root user

This commit is contained in:
Hazelnoot 2024-10-26 16:50:40 -04:00
parent f36a1a5701
commit 37ff2bb0ca

View file

@ -133,7 +133,7 @@ export class SignupService {
host: this.utilityService.toPunyNullable(host),
token: secret,
isRoot: isTheFirstUser,
approved: opts.approved ?? !this.meta.approvalRequiredForSignup,
approved: isTheFirstUser || (opts.approved ?? !this.meta.approvalRequiredForSignup),
signupReason: reason,
}));