refactor code

This commit is contained in:
GotPPay
2018-08-31 18:35:48 +02:00
parent bc15706f07
commit 513401c9db
2 changed files with 2 additions and 6 deletions

View File

@@ -82,13 +82,10 @@ function wiaas_db_update_setup_customer_capabilities() {
$customer_role = get_role('customer');
$customer_role->add_cap('read_private_shop_orders');
$customer_role->add_cap('read_private_products');
$customer_role->add_cap('read_shop_order');
$customer_role->add_cap('publish_shop_order');
}
function wiaas_db_update_add_customer_read_permission() {
$role = get_role( 'customer' );
$role->add_cap( 'read_private_products' );
}
function wiaas_db_update_enable_orders_access_management() {