| @@ -53,8 +53,13 @@ | ||
| 53 | 53 | * @since 2.2.2 |
| 54 | 54 | */ |
| 55 | 55 | public function maybe_configure_cache_plugins() { |
| 56 | 56 | |
| 57 | + // Only allow Administrators to update third party Plugin settings. | |
| 58 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 59 | + return; | |
| 60 | + } | |
| 61 | + | |
| 57 | 62 | // If no Pages, Posts or CPTs are configured to use Restrict Content, don't |
| 58 | 63 | // configure any caching plugins. |
| 59 | 64 | if ( ! WP_ConvertKit()->get_class( 'admin_restrict_content' )->restrict_content_enabled() ) { |
| 60 | 65 | return; |