Permissions For Shop Manager
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Permissions For Shop Manager’ is closed to new replies.
Home / Plugin: BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net / Permissions For Shop Manager
Hello, thank you for the great plugin I have purchased a licence as well. I found a small issue where the woo shop manager role can see the BEAR editor tab and see the dashboard pages but can’t make any changes via the bulk editor as it shows up with access denied.
I’m assuming the permission to make changes should be granted to the Shop Manager role? How can I go about giving the shop manager access to edit cia the bulk editor?
thank you
Found the solution by editing the code from the More settings documentation.
add_filter('woobe_user_can_edit', function($is_forbidden, $field_key, $shop_manager_visibility_array) {
$user = wp_get_current_user();
//print_r($shop_manager_visibility_array);
if (in_array('shop_manager', (array) $user->roles)) {
$is_forbidden = 1;
}
return $is_forbidden;
}, 10, 3);
Hello
Great! thank you for your cooperation!