diff --git a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAuthorizationHandler.cs b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAuthorizationHandler.cs index 9482bb5b95..c5f65ec7e3 100644 --- a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAuthorizationHandler.cs +++ b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAuthorizationHandler.cs @@ -35,7 +35,7 @@ namespace Volo.Blogging.Posts private async Task HasDeletePermission(AuthorizationHandlerContext context, Post resource) { - if (await _permissionChecker.IsGrantedAsync(context.User, BloggingPermissions.Comments.Delete)) + if (await _permissionChecker.IsGrantedAsync(context.User, BloggingPermissions.Posts.Delete)) { return true; } @@ -50,7 +50,7 @@ namespace Volo.Blogging.Posts return true; } - if (await _permissionChecker.IsGrantedAsync(context.User, BloggingPermissions.Comments.Update)) + if (await _permissionChecker.IsGrantedAsync(context.User, BloggingPermissions.Posts.Update)) { return true; }