From 1d916e43d5d5658a1b9570e4ee2af661751ee959 Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Thu, 31 Oct 2024 08:32:57 +0100 Subject: [PATCH] fix - community app should not check license --- packages/web/src/clientAuth.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web/src/clientAuth.ts b/packages/web/src/clientAuth.ts index 7eadc12c..14fd7c18 100644 --- a/packages/web/src/clientAuth.ts +++ b/packages/web/src/clientAuth.ts @@ -2,6 +2,7 @@ import { apiCall, enableApi, getAuthCategory } from './utility/api'; import { getConfig } from './utility/metadataLoaders'; import { isAdminPage } from './utility/pageDefs'; import getElectron from './utility/getElectron'; +import { isProApp } from './utility/proTools'; export function isOauthCallback() { const params = new URLSearchParams(location.search); @@ -127,6 +128,9 @@ export async function handleAuthOnStartup(config) { } function checkInvalidLicense() { + if (!isProApp()) { + return; + } if (!config.isLicenseValid) { if (config.storageDatabase || getElectron()) { if (isAdminPage()) { @@ -142,6 +146,9 @@ export async function handleAuthOnStartup(config) { } function checkTrialDaysLeft() { + if (!isProApp()) { + return; + } if ( config.trialDaysLeft != null && config.trialDaysLeft <= 14 &&