mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(core): Separate license state from license service (#15097)
This commit is contained in:
@@ -106,7 +106,7 @@ export class ControllerRegistry {
|
||||
|
||||
private createLicenseMiddleware(feature: BooleanLicenseFeature): RequestHandler {
|
||||
return (_req, res, next) => {
|
||||
if (!this.license.isFeatureEnabled(feature)) {
|
||||
if (!this.license.isLicensed(feature)) {
|
||||
res.status(403).json({ status: 'error', message: 'Plan lacks license for this feature' });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user