| @@ -47,8 +47,12 @@ | ||
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | public function do_action( array $request, Action_Handler $handler ) { |
| 51 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 52 | + return; | |
| 53 | + } | |
| 54 | + | |
| 51 | 55 | $fields_map = ! empty( $this->settings['meta_fields_map'] ) ? $this->settings['meta_fields_map'] : array(); |
| 52 | 56 | $options_data = array(); |
| 53 | 57 | |
| 54 | 58 | if ( empty( $this->settings['options_page'] ) ) { |