mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Fix typo, update default version
This commit is contained in:
parent
0d20b4a337
commit
69a916d709
2 changed files with 9 additions and 3 deletions
|
|
@ -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: .
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue