PrivateMessaging icon indicating copy to clipboard operation
PrivateMessaging copied to clipboard

PrivateMessageAuthorizationHandler has an error for HasGetPermissionAsync

Open zhuang1125 opened this issue 3 years ago • 1 comments

the source code on File PrivateMessageAuthorizationHandler.cs line 54, the source is : return (resource.ToUserId == currentUserId || resource.FromUserId == currentUserId) && await _permissionChecker.IsGrantedAsync(context.User, PrivateMessagingPermissions.PrivateMessages.Delete);

the PrivateMessagingPermissions.PrivateMessages.Delete should be PrivateMessagingPermissions.PrivateMessages.Default

zhuang1125 avatar Oct 24 '22 06:10 zhuang1125

@zhuang1125 - Would you like to fix it with a PR?

gdlcf88 avatar Oct 24 '22 06:10 gdlcf88