代码修改

master
he 2024-12-16 16:04:01 +08:00
parent f1dac41c7f
commit 579aaaadb0
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace IRaCIS.Core.API.Middleware
{
if (!await IsValidRequest(context))
{
context.Response.StatusCode = StatusCodes.Status409Conflict; ;
context.Response.StatusCode = StatusCodes.Status200OK; ;
context.Response.ContentType = "application/json";
var msg = JsonConvert.SerializeObject(ResponseOutput.NotOk("Access was denied due to lack of permission"));
Console.WriteLine(msg);