From 0e0a79c6cdd1cfa8267b7bd592866ae315c5fe94 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 29 Jun 2025 11:53:25 +0100 Subject: [PATCH] a web resource authorisation --- src/Yavsc/Extensions/PermissionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))