From bc15706f07be4da3d8f50327c3ff12aa9d62ad48 Mon Sep 17 00:00:00 2001 From: GotPPay Date: Fri, 31 Aug 2018 17:35:36 +0200 Subject: [PATCH] allow customer to add comments --- .../wiaas/includes/db-updates/wiaas-db-update-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-functions.php b/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-functions.php index 3ce2174..341ffe2 100644 --- a/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-functions.php +++ b/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-functions.php @@ -82,7 +82,8 @@ 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_shop_order'); + $customer_role->add_cap('read_shop_order'); + $customer_role->add_cap('publish_shop_order'); } function wiaas_db_update_add_customer_read_permission() {