loosen reconfigure check

This commit is contained in:
phact 2025-10-24 04:11:58 -04:00
parent ff3d495372
commit e3353bb0f8

View file

@ -424,13 +424,10 @@ async def onboarding(request, flows_service):
# Get current configuration
current_config = get_openrag_config()
# Check if config is NOT marked as edited (only allow onboarding if not yet configured)
# Warn if config was already edited (onboarding being re-run)
if current_config.edited:
return JSONResponse(
{
"error": "Configuration has already been edited. Use /settings endpoint for updates."
},
status_code=403,
logger.warning(
"Onboarding is being run although configuration was already edited before"
)
# Parse request body