From 69a916d7094467be5b17521585c1051a2caeaad3 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Thu, 26 Feb 2026 13:35:33 +0000 Subject: [PATCH] Fix typo, update default version --- docker-compose.yml | 2 +- lib/config.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1782ff5..534f446 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: website: - image: ghcr.io/bewcloud/bewcloud:v4.0.3 + image: ghcr.io/bewcloud/bewcloud:v4.1.0 # NOTE: uncomment below (and comment above) only if you pulled the repo and want to build the image locally # build: # context: . diff --git a/lib/config.ts b/lib/config.ts index 42c4cc6..dd76a6c 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -121,10 +121,16 @@ export class AppConfig { static async isSignupAllowed({ viaSingleSignOn = false }: { viaSingleSignOn?: boolean } = {}): Promise { await this.loadConfig(); - const areSignupsAllowed = viaSingleSignOn && !this.config.auth.allowSignups ? this.config.auth.allowSingleSignOnSignups : this.config.auth.allowSignups; + const areSignupsAllowed = viaSingleSignOn && !this.config.auth.allowSignups + ? this.config.auth.allowSignupsViaSingleSignOn + : this.config.auth.allowSignups; const areThereAdmins = await UserModel.isThereAnAdmin(); - return areSignupsAllowed || !areThereAdmins; + if (areSignupsAllowed || !areThereAdmins) { + return true; + } + + return false; } static async isAppEnabled(app: OptionalApp): Promise {