{"record":{"id":"eed7a755efe1f999","repo":"n8n-io/n8n","slug":"workflow-reviews-settings-are-not-enabled-in-this","errorCode":null,"errorMessage":"Workflow reviews settings are not enabled in this instance","messagePattern":"Workflow reviews settings are not enabled in this instance","errorType":"exception","errorClass":"ForbiddenError","httpStatus":403,"severity":"error","filePath":"packages/cli/src/controllers/security-settings.controller.ts","lineNumber":94,"sourceCode":"\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn updatedSettings;\n\t}\n\n\tprivate isWorkflowReviewsAvailable(): boolean {\n\t\treturn isWorkflowReviewsFeatureAvailable(this.licenseState.isWorkflowReviewsLicensed());\n\t}\n\n\tprivate async getWorkflowReviewsIfAvailable() {\n\t\tif (!this.isWorkflowReviewsAvailable()) return undefined;\n\t\treturn await this.workflowReviewPolicyService.get();\n\t}\n\n\tprivate assertWorkflowReviewsAvailable(): void {\n\t\tif (!this.isWorkflowReviewsAvailable()) {\n\t\t\tthrow new ForbiddenError('Workflow reviews settings are not enabled in this instance');\n\t\t}\n\t}\n}\n","sourceCodeStart":76,"sourceCodeEnd":98,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/cli/src/controllers/security-settings.controller.ts#L76-L98","documentation":"Workflow reviews require both a license (licenseState.isWorkflowReviewsLicensed()) and feature availability. assertWorkflowReviewsAvailable() throws 403 ForbiddenError 'Workflow reviews settings are not enabled in this instance' when isWorkflowReviewsFeatureAvailable returns false.","triggerScenarios":"POST /security-settings with a workflowReviews field in the body while the workflow-reviews feature is not licensed/available on the instance.","commonSituations":"Plan tier without workflow reviews; license not loaded or feature flag off; trying to configure reviews before entitlement is active.","solutions":["Upgrade the license / enable the workflow-reviews entitlement.","Omit the workflowReviews field from the request body until the feature is available.","Confirm feature-flag/licensing state in the instance before exposing the workflow-reviews UI."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Only send workflowReviews when the feature is licensed.\nfunction shouldSendWorkflowReviews(dto, featureAvailable) {\n  return dto.workflowReviews === undefined ? true : featureAvailable;\n}","typeGuard":null,"tryCatchPattern":"try {\n  await api.post('/security-settings', dto);\n} catch (e) {\n  if (e.status === 403 && /Workflow reviews settings are not enabled/.test(e.message)) {\n    // omit workflowReviews or upgrade license, then retry\n  } else { throw e; }\n}","preventionTips":["Gate the workflow-reviews UI on licensing/feature state.","Strip workflowReviews from the payload when unavailable."],"tags":["license","workflow-reviews","security","feature-flag"],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}