a web resource authorisation

This commit is contained in:
Paul Schneider
2025-06-29 11:53:25 +01:00
parent 0f52a875de
commit 0e0a79c6cd

View File

@ -65,7 +65,7 @@ public class PermissionHandler : IAuthorizationHandler
else
if (resource is DefaultHttpContext httpContext)
{
if (httpContext.Request.Path.StartsWithSegments("/Blogspot/Delete", StringComparison.OrdinalIgnoreCase))
if (httpContext.Request.Path.StartsWithSegments("/blogpost/Delete", StringComparison.OrdinalIgnoreCase))
{
string postId = (string)httpContext.GetRouteValue("id");
if (long.TryParse(postId, out long id))