Use custom capability to manage access to order delivery process
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user