Skip to content

Commit a9a3721

Browse files
fix: prevent SQL injection
1 parent 1d6a60b commit a9a3721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public function get_visualizer_data( $post ) {
492492
* @access public
493493
*/
494494
public function get_query_data( $data ) {
495-
if ( ! current_user_can( 'edit_posts' ) ) {
495+
if ( ! current_user_can( 'administrator' ) ) {
496496
return false;
497497
}
498498

0 commit comments

Comments
 (0)