refactor: Remove hasValidLicense check from static apps list

This commit is contained in:
Faruk AYDIN
2025-05-21 17:05:50 +02:00
parent 4a40a216d4
commit 7d3faf1da9
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ import cloneDeep from 'lodash/cloneDeep.js';
import addAuthenticationSteps from './add-authentication-steps.js';
import addReconnectionSteps from './add-reconnection-steps.js';
import { fileURLToPath, pathToFileURL } from 'url';
import { hasValidLicense } from './license.ee.js';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -17,7 +16,7 @@ const apps = fs
const indexPath = join(__dirname, '../apps', dirent.name, 'index.js');
const indexEePath = join(__dirname, '../apps', dirent.name, 'index.ee.js');
if (fs.existsSync(indexEePath) && hasValidLicense()) {
if (fs.existsSync(indexEePath)) {
apps[dirent.name] = import(pathToFileURL(indexEePath));
} else {
apps[dirent.name] = import(pathToFileURL(indexPath));

View File

@@ -21,6 +21,7 @@ class App {
for (const dir of directories) {
const appData = await getApp(dir, true);
if (!appData.enterprise) {
nonEnterpriseApps.push(dir);
}