diff --git a/src/Yavsc/Extensions/PermissionHandler.cs b/src/Yavsc/Extensions/PermissionHandler.cs index 5d82f64d..96fcb7fc 100644 --- a/src/Yavsc/Extensions/PermissionHandler.cs +++ b/src/Yavsc/Extensions/PermissionHandler.cs @@ -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))