From e56ae519d80bbf0a7a6922599917ea7b07f8b619 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 29 Jun 2022 09:16:30 +0100 Subject: [PATCH] check for account portal URL --- packages/server/src/api/controllers/dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/dev.js b/packages/server/src/api/controllers/dev.js index 3c249f5cab..bce22e8a77 100644 --- a/packages/server/src/api/controllers/dev.js +++ b/packages/server/src/api/controllers/dev.js @@ -141,7 +141,7 @@ exports.getBudibaseVersion = async ctx => { // TODO: remove as part of beta program exports.checkBetaAccess = async ctx => { // go to the cloud platform if running self hosted - if (env.SELF_HOSTED || !env.MULTI_TENANCY) { + if ((env.ACCOUNT_PORTAL_URL && env.SELF_HOSTED) || !env.MULTI_TENANCY) { const baseUrl = env.ACCOUNT_PORTAL_URL.replace("account.", "") const response = await fetch( `${baseUrl}/api/beta/access?email=${ctx.query.email}`