Added read private products permission to customer

This commit is contained in:
Nedim Uka
2018-08-09 14:32:14 +02:00
parent 0993e474c9
commit 848e3f566b
5 changed files with 11 additions and 6 deletions

View File

@@ -83,4 +83,8 @@ function wiaas_db_update_setup_customer_capabilities() {
$customer_role->add_cap('read_private_shop_orders');
$customer_role->add_cap('read_shop_order');
}
}
function wiaas_db_update_add_customer_read_permission() {
$role = get_role( 'customer' );
$role->add_cap( 'read_private_products' );
}