| @@ -45,8 +45,12 @@ | ||
| 45 | 45 | /** |
| 46 | 46 | * Maybe member is trying to connect via Hub Connection Module. |
| 47 | 47 | */ |
| 48 | 48 | public function maybe_hcm_connection_attempt() { |
| 49 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 50 | + return; | |
| 51 | + } | |
| 52 | + | |
| 49 | 53 | $module_slug = defender_get_data_from_request( 'module_slug', 'g' ); |
| 50 | 54 | $is_callback = defender_get_data_from_request( 'hub_connector_callback', 'g' ); |
| 51 | 55 | |
| 52 | 56 | if ( is_string( $module_slug ) && '' !== $module_slug && is_string( $is_callback ) && '' !== $is_callback ) { |