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

Add filter on 'list_users' cap in WP_REST_OAuth1_Admin::register #186

Open
thomasfw opened this issue Nov 29, 2016 · 0 comments
Open

Add filter on 'list_users' cap in WP_REST_OAuth1_Admin::register #186

thomasfw opened this issue Nov 29, 2016 · 0 comments

Comments

@thomasfw
Copy link

It would be useful if we had the option to change the capability for the Users > Applications page so we could prevent access from clients who also have the list_users cap. This would do it...

/* rest-api-oauth1/lib/class-wp-rest-oauth1-admin.php */

22: // Capability
23: apply_filters( 'oauth1_admin_cap', 'list_users' ),
24: 
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

1 participant