mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
chore: simplify return statement
This commit is contained in:
parent
52fa2fcb50
commit
d4b197a7c1
1 changed files with 1 additions and 5 deletions
|
|
@ -124,11 +124,7 @@ export class AppConfig {
|
|||
const areSignupsAllowed = (sso) ? this.config.auth.enableSingleSignOnSignUp : this.config.auth.allowSignups;
|
||||
const areThereAdmins = await UserModel.isThereAnAdmin();
|
||||
|
||||
if (areSignupsAllowed || !areThereAdmins) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return areSignupsAllowed || !areThereAdmins;
|
||||
}
|
||||
|
||||
static async isAppEnabled(app: OptionalApp): Promise<boolean> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue