Merged in feature/280-dev-dev01 (pull request #21)
auto-patch 280-dev-dev01-2024-01-19T16_41_58 * auto-patch 280-dev-dev01-2024-01-19T16_41_58
This commit is contained in:
@@ -1603,7 +1603,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
||||
if ( $this->get_parent_id() ) {
|
||||
$parent_product = wc_get_product( $this->get_parent_id() );
|
||||
|
||||
if ( $parent_product && 'publish' !== $parent_product->get_status() ) {
|
||||
if ( $parent_product && 'publish' !== $parent_product->get_status() && ! current_user_can( 'edit_post', $parent_product->get_id() ) ) {
|
||||
$visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user