Use custom capability to manage access to order delivery process

This commit is contained in:
Almira Krdzic
2018-12-03 12:20:47 +01:00
parent 2c0e217a49
commit c5f590c3fe
6 changed files with 12 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ class Wiaas_Delivery_Process {
$delivery_process_entry = self::get_order_delivery_process_entry($order_id);
}
if (empty($delivery_process_entry) || ! GFAPI::current_user_can_any( 'gravityflow_workflow_detail_admin_actions' )) {
if (empty($delivery_process_entry) || ! GFAPI::current_user_can_any( 'manage_wiaas_order_delivery_process' )) {
return false;
}