Skip to content

Commit

Permalink
Add extra is_multisite validation
Browse files Browse the repository at this point in the history
  • Loading branch information
vaurdan committed Oct 30, 2024
1 parent 6226d8a commit cb9ab02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function current_user_can_use_pch_feature(
}

// If the user is a super admin, they can access the feature.
if ( is_super_admin() ) {
if ( is_multisite() && is_super_admin( $current_user->ID ) ) {
return true;
}

Expand Down

0 comments on commit cb9ab02

Please sign in to comment.