mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
chore: linted
This commit is contained in:
parent
d4b197a7c1
commit
42eaaf8de7
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue