PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Shop manager forbidden

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

Impossible for a shop manager to modify the stock: forbidden
I activated as right manage_options and integrated this snippet

add_filter('woobe_user_can_edit', function($is_forbidden, $field_key, $shop_manager_visibility_array) {
    return 1;
}, 10, 3);

Everything worked fine until recently.

The config:

WP: 6.1.1

Divi Theme: 4.19.4

WooCommerce: version: 7.2.2
BEAR – Bulk Editor and Products Manager Professional for WooCommerce: version: 1.1.3

An idea ?

Thanks

Hello

Please  drop  me  FTP+wp-admin(shop manager) access - https://share.pluginus.net/image/i20210618130558.png ->  https://share.pluginus.net/image/i20210618130637.png

Hello

You  can  try  in  file - wp-content\plugins\woocommerce-bulk-editor\ext\vendor_area\vendor_area.php - change  this  function - https://share.pluginus.net/image/i20230112123028.png

public function user_can($visibility, $field_key, $shop_manager_visibility) {
$user = wp_get_current_user();
$match = array_intersect((array) $user->roles, $this->get_user_roles());
if (count($match)) {
if ($field_key == 'post_author') {
return 0;
}
}
return $visibility;
}