Skip to content

Commit 3e2c21b

Browse files
refactor: check super admin on multisite
1 parent f41cb7f commit 3e2c21b

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( 'administrator' ) ) {
495+
if ( ! current_user_can( 'administrator' ) || ( is_multisite() && ! is_super_admin() ) ) {
496496
return false;
497497
}
498498

0 commit comments

Comments
 (0)