No access to orders/coupons for non shop-managers/admin
This commit is contained in:
parent
fe5651fff5
commit
a04551bd35
|
@ -238,6 +238,17 @@ function woocommerce_post_type() {
|
|||
'public' => true,
|
||||
'show_ui' => true,
|
||||
'capability_type' => 'post',
|
||||
'capabilities' => array(
|
||||
'publish_posts' => 'manage_woocommerce',
|
||||
'edit_posts' => 'manage_woocommerce',
|
||||
'edit_others_posts' => 'manage_woocommerce',
|
||||
'delete_posts' => 'manage_woocommerce',
|
||||
'delete_others_posts'=> 'manage_woocommerce',
|
||||
'read_private_posts'=> 'manage_woocommerce',
|
||||
'edit_post' => 'manage_woocommerce',
|
||||
'delete_post' => 'manage_woocommerce',
|
||||
'read_post' => 'manage_woocommerce',
|
||||
),
|
||||
'publicly_queryable' => false,
|
||||
'exclude_from_search' => true,
|
||||
'show_in_menu' => $show_in_menu,
|
||||
|
@ -271,6 +282,17 @@ function woocommerce_post_type() {
|
|||
'public' => true,
|
||||
'show_ui' => true,
|
||||
'capability_type' => 'post',
|
||||
'capabilities' => array(
|
||||
'publish_posts' => 'manage_woocommerce',
|
||||
'edit_posts' => 'manage_woocommerce',
|
||||
'edit_others_posts' => 'manage_woocommerce',
|
||||
'delete_posts' => 'manage_woocommerce',
|
||||
'delete_others_posts'=> 'manage_woocommerce',
|
||||
'read_private_posts'=> 'manage_woocommerce',
|
||||
'edit_post' => 'manage_woocommerce',
|
||||
'delete_post' => 'manage_woocommerce',
|
||||
'read_post' => 'manage_woocommerce',
|
||||
),
|
||||
'publicly_queryable' => true,
|
||||
'exclude_from_search' => true,
|
||||
'show_in_menu' => $show_in_menu,
|
||||
|
|
Loading…
Reference in New Issue