Use custom capability to manage access to order delivery process
This commit is contained in:
@@ -52,7 +52,7 @@ if ($is_current_step) {
|
||||
|
||||
$action_entry_step = $action_workflow->get_current_step($action_entry);
|
||||
|
||||
$show_entry = GFAPI::current_user_can_any( 'gravityflow_workflow_detail_admin_actions' ) ||
|
||||
$show_entry = GFAPI::current_user_can_any( 'manage_wiaas_order_delivery_process' ) ||
|
||||
($action_entry_step &&
|
||||
$action_entry_step->is_assignee($current_assignee_key));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user