proxy: disabled save protection of tasks.json in production
This commit is contained in:
parent
37ebf73cab
commit
ce9760a84b
1 changed files with 4 additions and 2 deletions
|
@ -34,8 +34,10 @@ namespace Ksp.WebServer.Controllers
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IActionResult> Post()
|
public async Task<IActionResult> Post()
|
||||||
{
|
{
|
||||||
if (env.IsProduction())
|
// Saving in production is now enabled in order to allow people from the outside
|
||||||
return this.Forbid();
|
// to modify tasks.json using the editor.
|
||||||
|
// if (env.IsProduction())
|
||||||
|
// return this.Forbid();
|
||||||
|
|
||||||
// TODO: auth org
|
// TODO: auth org
|
||||||
using var rdr = new StreamReader(HttpContext.Request.Body);
|
using var rdr = new StreamReader(HttpContext.Request.Body);
|
||||||
|
|
Reference in a new issue