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
+1 -1
View File
@@ -68,7 +68,7 @@ public class MediaController : Controller
catch (UnauthorizedAccessException ex)
{
_logger.LogWarning(ex, ex.Message);
return Unauthorized(ex.Message);
return Forbid(ex.Message);
}
catch (InvalidOperationException ex)
{