| @@ -491,9 +491,9 @@ | ||
| 491 | 491 | * |
| 492 | 492 | * @access public |
| 493 | 493 | */ |
| 494 | 494 | public function get_query_data( $data ) { |
| 495 | - if ( ! current_user_can( 'edit_posts' ) ) { | |
| 495 | + if ( ! current_user_can( 'administrator' ) ) { | |
| 496 | 496 | return false; |
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | $source = new Visualizer_Source_Query( stripslashes( $data['query'] ) ); |