feat(core): Show a banner when running a non-prod license (no-changelog) (#6849)

* add feat:showNonProdBanner

* fix linting

* fix linting
This commit is contained in:
Cornelius Suermann
2023-08-16 10:05:03 +02:00
committed by GitHub
parent 775e73e0c3
commit 198a977f57
5 changed files with 10 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ import {
GENERATED_STATIC_DIR,
inDevelopment,
inE2ETests,
LICENSE_FEATURES,
N8N_VERSION,
RESPONSE_ERROR_MESSAGES,
TEMPLATES_DIR,
@@ -311,6 +312,7 @@ export class Server extends AbstractServer {
variables: false,
sourceControl: false,
auditLogs: false,
showNonProdBanner: false,
debugInEditor: false,
},
hideUsagePage: config.getEnv('hideUsagePage'),
@@ -441,6 +443,9 @@ export class Server extends AbstractServer {
advancedExecutionFilters: isAdvancedExecutionFiltersEnabled(),
variables: isVariablesEnabled(),
sourceControl: isSourceControlLicensed(),
showNonProdBanner: Container.get(License).isFeatureEnabled(
LICENSE_FEATURES.SHOW_NON_PROD_BANNER,
),
debugInEditor: isDebugInEditorLicensed(),
});