代码修改
parent
f1dac41c7f
commit
579aaaadb0
|
@ -31,7 +31,7 @@ namespace IRaCIS.Core.API.Middleware
|
||||||
{
|
{
|
||||||
if (!await IsValidRequest(context))
|
if (!await IsValidRequest(context))
|
||||||
{
|
{
|
||||||
context.Response.StatusCode = StatusCodes.Status409Conflict; ;
|
context.Response.StatusCode = StatusCodes.Status200OK; ;
|
||||||
context.Response.ContentType = "application/json";
|
context.Response.ContentType = "application/json";
|
||||||
var msg = JsonConvert.SerializeObject(ResponseOutput.NotOk("Access was denied due to lack of permission"));
|
var msg = JsonConvert.SerializeObject(ResponseOutput.NotOk("Access was denied due to lack of permission"));
|
||||||
Console.WriteLine(msg);
|
Console.WriteLine(msg);
|
||||||
|
|
Loading…
Reference in New Issue