prevent logging of error for personalized pages

This commit is contained in:
sbwalker
2023-07-10 14:51:32 -04:00
parent 66d07fbed3
commit 62ad99d0b6
2 changed files with 8 additions and 6 deletions

View File

@ -143,9 +143,8 @@ namespace Oqtane.Controllers
{
_logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized File Get Attempt {Name} For Folder {FolderId}", name, folderId);
HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;
file = null;
}
return file;
return null;
}
}