cloudflare / Cloudflare-WordPress

A Cloudflare plugin for WordPress
https://www.cloudflare.com/wordpress/
BSD 3-Clause "New" or "Revised" License
216 stars 83 forks source link

Fix empty settings page for users with `manage_options` capability without administrator role #546

Open rvdsteege opened 4 months ago

rvdsteege commented 4 months ago

The WordPress admin settings page of the Cloudflare plugin is empty for users having the manage_options capability without the administrator role (as is the case with for example a custom 'Manager' role).

This PR intends to fix #544 which describes this issue, by using the same manage_options capability check for the admin menu page and the 'Cloudflare proxy':

The "Cloudflare" admin menu item requires the manage_options capability and the WordPress AJAX action cloudflare_proxy — which seems needed to load the settings page — is checking for the administrator role.

Can you take a look at this, @aseure?

rvdsteege commented 3 months ago

@aseure it's been a month, any update on this? 🙂