chore: linted

This commit is contained in:
Piotr Łoboda 2026-02-25 17:09:31 +01:00
parent d4b197a7c1
commit 42eaaf8de7

View file

@ -118,10 +118,10 @@ export class AppConfig {
return this.config; return this.config;
} }
static async isSignupAllowed(sso: boolean=false): Promise<boolean> { static async isSignupAllowed(sso: boolean = false): Promise<boolean> {
await this.loadConfig(); 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(); const areThereAdmins = await UserModel.isThereAnAdmin();
return areSignupsAllowed || !areThereAdmins; return areSignupsAllowed || !areThereAdmins;