diff --git a/lib/config.ts b/lib/config.ts index 444d62f..892335d 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -118,10 +118,10 @@ export class AppConfig { return this.config; } - static async isSignupAllowed(sso: boolean=false): Promise { + static async isSignupAllowed(sso: boolean = false): Promise { await this.loadConfig(); - const areSignupsAllowed = (sso) ? this.config.auth.enableSingleSignOnSignUp : this.config.auth.allowSignups; + const areSignupsAllowed = sso ? this.config.auth.enableSingleSignOnSignUp : this.config.auth.allowSignups; const areThereAdmins = await UserModel.isThereAnAdmin(); return areSignupsAllowed || !areThereAdmins;