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

Use 'manage_options' as the permission check for /api route #106

Closed
mlwilkerson opened this issue Mar 19, 2021 · 0 comments · Fixed by #119
Closed

Use 'manage_options' as the permission check for /api route #106

mlwilkerson opened this issue Mar 19, 2021 · 0 comments · Fixed by #119

Comments

@mlwilkerson
Copy link
Member

Our ConfigController has a permissions check for:

current_user_can( 'manage_options' )

But the API Controller has:

current_user_can( 'edit_posts' )

We should use the same in both places, probably changing the latter to use manage_options

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

Successfully merging a pull request may close this issue.

1 participant