{"record":{"id":"8ac5936d4284893c","repo":"langflow-ai/langflow","slug":"custom-component-editing-is-restricted-to-administ","errorCode":null,"errorMessage":"Custom component editing is restricted to administrators","messagePattern":"Custom component editing is restricted to administrators","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":1471,"sourceCode":"    settings_service = get_settings_service()\n    all_known = None\n    if _requires_component_hash_lookups(settings_service.settings, user):\n        get_component_hash_lookups_for_validation()\n        all_known = component_cache.all_known_hashes\n        if all_known is None:\n            raise HTTPException(\n                status_code=status.HTTP_503_SERVICE_UNAVAILABLE,\n                detail=\"Component templates are still initializing. Please try again in a few seconds.\",\n            )\n\n    # In admin-only mode, non-admin users may refresh/update only known server\n    # templates. Truly custom code edits remain restricted to administrators.\n    if (\n        getattr(settings_service.settings, \"custom_component_admin_only\", False) is True\n        and not user.is_superuser\n        and not code_hash_matches_any_template(code_request.code, all_known)\n    ):\n        raise HTTPException(\n            status_code=status.HTTP_403_FORBIDDEN,\n            detail=\"Custom component editing is restricted to administrators\",\n        )\n\n    if not settings_service.settings.allow_custom_components and not code_hash_matches_any_template(\n        code_request.code, all_known\n    ):\n        raise HTTPException(\n            status_code=status.HTTP_403_FORBIDDEN,\n            detail=\"Custom component creation is disabled\",\n        )\n\n    # In restricted mode the request only reached here by matching a known\n    # template hash. Because that hash is a truncated digest, execute the\n    # server's trusted copy keyed by the same hash rather than the client\n    # bytes (defeats a hash collision), failing closed if it can't be found.\n    effective_code = code_request.code\n    if _requires_component_hash_lookups(settings_service.settings, user):","sourceCodeStart":1453,"sourceCodeEnd":1489,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L1453-L1489","documentation":"Error \"Custom component editing is restricted to administrators\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when a non-administrator user attempts to edit a custom component while admin-only editing is enforced.","commonSituations":"See trigger scenarios.","solutions":["Perform the edit as an administrator, or ask an admin to make the change."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}