Skip to content

Commit 7b8535a

Browse files
release: fixes
- Enhanced security
2 parents 78afca0 + 7e8666e commit 7b8535a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)