Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Correct /posts/ endpoint read post permission logic #805

Merged
merged 3 commits into from
Jan 28, 2015
Merged

Conversation

rachelbaker
Copy link
Member

Fixes #788

No longer passing $post by reference in get_items() method of Posts Controller, instead using an array to gather posts once they pass the permission check.

Added unit test to confirm logic is no longer flawed.

This was not an issue in any of the other endpoint Controllers.

@rachelbaker
Copy link
Member Author

@WP-API/amigos #reviewmerge

joehoyle added a commit that referenced this pull request Jan 28, 2015
Correct /posts/ endpoint read post permission logic
@joehoyle joehoyle merged commit c5e85c8 into develop Jan 28, 2015
@joehoyle joehoyle deleted the fix-788 branch January 28, 2015 11:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flawed logic when checking post read permission
2 participants