Update db migration and remove unused files
This commit is contained in:
@@ -88,7 +88,7 @@ function wiaas_disable_processing_order_email_delivery() {
|
||||
}
|
||||
|
||||
|
||||
function update_delivery_forms() {
|
||||
function wiaas_db_update_update_delivery_forms() {
|
||||
|
||||
$forms = GFAPI::get_forms();
|
||||
foreach ($forms as $form) {
|
||||
|
||||
@@ -315,4 +315,12 @@ function wiaas_admin_create_role_access_groups() {
|
||||
function wiaas_db_update_update_supplier_order_capabilities() {
|
||||
// add supplier role to view orders
|
||||
wp_roles()->add_cap( 'supplier', 'edit_shop_orders' );
|
||||
}
|
||||
|
||||
function wiaas_db_update_enable_workflow_inbox_for_roles() {
|
||||
// add workflow inbox for supplier
|
||||
wp_roles()->add_cap( 'supplier', 'gravityflow_inbox' );
|
||||
// add workflow inbox for commercial lead
|
||||
wp_roles()->add_cap( 'commercial_lead', 'gravityflow_inbox' );
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user