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

@@ -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));