From 37ff2bb0ca39cadfe82f972b01b3dddb9669fe8c Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 26 Oct 2024 16:50:40 -0400 Subject: [PATCH] always approve the first / root user --- packages/backend/src/core/SignupService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/SignupService.ts b/packages/backend/src/core/SignupService.ts index 78b97401fd..1b0b1e5bbd 100644 --- a/packages/backend/src/core/SignupService.ts +++ b/packages/backend/src/core/SignupService.ts @@ -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, }));