Fix typo, update default version
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
Deploy / deploy (push) Has been cancelled
Run Tests / test (push) Has been cancelled

This commit is contained in:
Bruno Bernardino 2026-02-26 13:35:33 +00:00
parent 0d20b4a337
commit 69a916d709
No known key found for this signature in database
GPG key ID: D1B0A69ADD114ECE
2 changed files with 9 additions and 3 deletions

View file

@ -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: .

View file

@ -121,10 +121,16 @@ export class AppConfig {
static async isSignupAllowed({ viaSingleSignOn = false }: { viaSingleSignOn?: boolean } = {}): Promise<boolean> {
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<boolean> {