Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Fix permissions check for plugin endpoint. #17

Open
BE-Webdesign opened this issue Aug 9, 2016 · 0 comments
Open

Fix permissions check for plugin endpoint. #17

BE-Webdesign opened this issue Aug 9, 2016 · 0 comments

Comments

@BE-Webdesign
Copy link
Member

Currently the permissions check looks at manage_options this capability does not have to do with plugin access. The correct capability to check is activate_plugins. For Reference and source code reference

BE-Webdesign added a commit to BE-Webdesign/wp-api-plugins-themes-endpoints that referenced this issue Aug 9, 2016
Fixes WP-API#17.  Currently the permissions do not match what core uses to
restric plugin access.  This does not account for multisite, which will
be added in a separate commit on a separate PR.  Tests are updated to
reflect unauthenticated and authenticated users without permissions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant