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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue