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;
}
static async isSignupAllowed(sso: boolean=false): Promise<boolean> {
static async isSignupAllowed(sso: boolean = false): Promise<boolean> {
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;