From 543c16d216eb2169b43fddd308a34574696eb2d8 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Wed, 27 Mar 2019 08:13:17 +0300 Subject: [PATCH] Resolved #920 --- .../Volo/Blogging/Posts/PostAuthorizationHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }