PrivateMessaging
PrivateMessaging copied to clipboard
PrivateMessageAuthorizationHandler has an error for HasGetPermissionAsync
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 - Would you like to fix it with a PR?