Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrivateMessageAuthorizationHandler has an error for HasGetPermissionAsync #60

Open
zhuang1125 opened this issue Oct 24, 2022 · 1 comment

Comments

@zhuang1125
Copy link

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

@gdlcf88
Copy link
Member

gdlcf88 commented Oct 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants