Use custom capability to manage access to order delivery process
This commit is contained in:
@@ -323,4 +323,9 @@ function wiaas_db_update_enable_workflow_inbox_for_roles() {
|
||||
// add workflow inbox for commercial lead
|
||||
wp_roles()->add_cap( 'commercial_lead', 'gravityflow_inbox' );
|
||||
|
||||
}
|
||||
|
||||
function wiaas_db_update_add_administrator_delivery_process_capabilities() {
|
||||
|
||||
wp_roles()->add_cap('administrator', 'manage_wiaas_order_delivery_process');
|
||||
}
|
||||
Reference in New Issue
Block a user