a web resource authorisation
This commit is contained in:
parent
8bd1653a1e
commit
58de03009a
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue