mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 01:26:44 +00:00
Restore license bypass functionality - always return true for license checks and unlimited quotas
This commit is contained in:
@@ -217,8 +217,10 @@ export class License implements LicenseProvider {
|
||||
this.logger.debug('License shut down');
|
||||
}
|
||||
|
||||
isLicensed(feature: BooleanLicenseFeature) {
|
||||
return this.manager?.hasFeatureEnabled(feature) ?? false;
|
||||
isLicensed(_feature: BooleanLicenseFeature) {
|
||||
// Bypass license check - always return true
|
||||
return true;
|
||||
// Original code: return this.manager?.hasFeatureEnabled(feature) ?? false;
|
||||
}
|
||||
|
||||
/** @deprecated Use `LicenseState.isSharingLicensed` instead. */
|
||||
@@ -384,17 +386,23 @@ export class License implements LicenseProvider {
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
getUsersLimit() {
|
||||
return this.getValue(LICENSE_QUOTAS.USERS_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
// Bypass license quota - always return unlimited
|
||||
return UNLIMITED_LICENSE_QUOTA;
|
||||
// Original code: return this.getValue(LICENSE_QUOTAS.USERS_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
}
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
getTriggerLimit() {
|
||||
return this.getValue(LICENSE_QUOTAS.TRIGGER_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
// Bypass license quota - always return unlimited
|
||||
return UNLIMITED_LICENSE_QUOTA;
|
||||
// Original code: return this.getValue(LICENSE_QUOTAS.TRIGGER_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
}
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
getVariablesLimit() {
|
||||
return this.getValue(LICENSE_QUOTAS.VARIABLES_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
// Bypass license quota - always return unlimited
|
||||
return UNLIMITED_LICENSE_QUOTA;
|
||||
// Original code: return this.getValue(LICENSE_QUOTAS.VARIABLES_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
}
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
@@ -404,12 +412,16 @@ export class License implements LicenseProvider {
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
getWorkflowHistoryPruneLimit() {
|
||||
return this.getValue(LICENSE_QUOTAS.WORKFLOW_HISTORY_PRUNE_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
// Bypass license quota - always return unlimited
|
||||
return UNLIMITED_LICENSE_QUOTA;
|
||||
// Original code: return this.getValue(LICENSE_QUOTAS.WORKFLOW_HISTORY_PRUNE_LIMIT) ?? UNLIMITED_LICENSE_QUOTA;
|
||||
}
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
getTeamProjectLimit() {
|
||||
return this.getValue(LICENSE_QUOTAS.TEAM_PROJECT_LIMIT) ?? 0;
|
||||
// Bypass license quota - always return unlimited
|
||||
return UNLIMITED_LICENSE_QUOTA;
|
||||
// Original code: return this.getValue(LICENSE_QUOTAS.TEAM_PROJECT_LIMIT) ?? 0;
|
||||
}
|
||||
|
||||
getPlanName(): string {
|
||||
@@ -426,7 +438,9 @@ export class License implements LicenseProvider {
|
||||
|
||||
/** @deprecated Use `LicenseState` instead. */
|
||||
isWithinUsersLimit() {
|
||||
return this.getUsersLimit() === UNLIMITED_LICENSE_QUOTA;
|
||||
// Bypass license check - always return true (within unlimited quota)
|
||||
return true;
|
||||
// Original code: return this.getUsersLimit() === UNLIMITED_LICENSE_QUOTA;
|
||||
}
|
||||
|
||||
@OnLeaderTakeover()
|
||||
|
||||
Reference in New Issue
Block a user