From ce9760a84baf3a60890b6b86382c417b870f1e6a Mon Sep 17 00:00:00 2001 From: Vasek Sraier Date: Thu, 22 Oct 2020 15:23:31 +0200 Subject: [PATCH] proxy: disabled save protection of tasks.json in production --- server/Ksp.WebServer/Controllers/TasksController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/Ksp.WebServer/Controllers/TasksController.cs b/server/Ksp.WebServer/Controllers/TasksController.cs index 0a38497..d254e70 100644 --- a/server/Ksp.WebServer/Controllers/TasksController.cs +++ b/server/Ksp.WebServer/Controllers/TasksController.cs @@ -34,8 +34,10 @@ namespace Ksp.WebServer.Controllers [HttpPost] public async Task Post() { - if (env.IsProduction()) - return this.Forbid(); + // Saving in production is now enabled in order to allow people from the outside + // to modify tasks.json using the editor. + // if (env.IsProduction()) + // return this.Forbid(); // TODO: auth org using var rdr = new StreamReader(HttpContext.Request.Body);