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

Unable to preview comments when restricted from posting. #215

Open
dd32 opened this issue Nov 15, 2021 · 1 comment
Open

Unable to preview comments when restricted from posting. #215

dd32 opened this issue Nov 15, 2021 · 1 comment
Labels

Comments

@dd32
Copy link
Member

dd32 commented Nov 15, 2021

When a user can comment on a o2 site, but cannot post to it, the user is unable to preview their o2 comments.

This is caused by the below code which requires that the user have edit post rights in order to use the preview endpoint.

https://github.com/Automattic/o2/blob/master/inc/read-api.php#L464-L468

This code branch should allow a comment preview (but NOT a post preview) when the user can create a comment, but alike, it should not allow a comment preview when the user cannot comment (ie. unauthenticated, or blocked from commenting too).

The experience a user will see when running into this situation, is a The connection to the server has been interrupted. Please reconnect. error.

As reported on the WordPress.org slack instance: https://wordpress.slack.com/archives/C02QB8GMM/p1636931587138600

@dd32 dd32 added the bug label Nov 15, 2021
@dd32
Copy link
Member Author

dd32 commented Nov 8, 2022

Noting this is caused by #205

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

No branches or pull requests

1 participant