Unauthorized changet to Forbid

This commit is contained in:
Artemy
2025-07-21 17:16:51 +07:00
parent 4054e4046a
commit 93004a26b3
3 changed files with 4 additions and 9 deletions
@@ -43,11 +43,6 @@ public class OnlinePingingController : Controller
_logger.LogError(e, e.Message);
return BadRequest("User can't be found in our database.");
}
catch (UnauthorizedAccessException e)
{
_logger.LogError(e, e.Message);
return Forbid(e.Message);
}
catch (Exception e)
{
_logger.LogError(e, e.Message);