FortAwesome / wordpress-fontawesome

Font Awesome Official WordPress Plugin
Other
56 stars 19 forks source link

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

Closed mlwilkerson closed 3 years ago

mlwilkerson commented 3 years ago

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