-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Improve single comment endpoint read permissions checks #10525
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
Open
adamsilverstein
wants to merge
19
commits into
WordPress:trunk
Choose a base branch
from
adamsilverstein:check/comment-permissions
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+149
−14
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
831fbaa
Test comment permissions for 44157
adamsilverstein 2f0af73
check_read_permission - return false early if no user
adamsilverstein 4b04b7b
test single comment endpoint permissions
adamsilverstein 25a4050
phpcbf
adamsilverstein ee5c6b5
Only apply post based permissions to ‘comment’ type
adamsilverstein 70b3647
refactor(tests): split comment type tests and add data provider
adamsilverstein 05d53d4
improve tests
adamsilverstein 00e446b
validate individual comment endpoint returns correct status
adamsilverstein 6c48f38
Adjust logic to only impact notes; adjust tests
adamsilverstein 68f3991
test cleanup, improve doc blocks
adamsilverstein 0fa0cf2
phpcbf
adamsilverstein f26746a
Do not expose whether post type supports notes to unauthenticated users.
peterwilsoncc d734ac4
Didn’t mean to remove this.
peterwilsoncc 875afc7
Use assertSame, add messages.
peterwilsoncc 20addb9
Nit: I am the worst.
peterwilsoncc 2dd66bc
docblock cleanup
adamsilverstein c6a2ce1
Apply suggestion from @westonruter
adamsilverstein 7e66010
missing brace
adamsilverstein 9c722ca
Move data provider after tests that use it
adamsilverstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.