Skip to content

Commit

Permalink
fix: check if vendor can update order status is fixed #346 (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Aug 18, 2018
1 parent 9a1e578 commit a8110f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/wc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,10 @@ function dokan_bulk_order_status_change() {
return;
}

if ( dokan_get_option( 'order_status_change', 'dokan_selling' ) == 'off' ) {
return;
}

if ( ! isset( $_POST['security'] ) || ! wp_verify_nonce( $_POST['security'], 'bulk_order_status_change' ) ) {
return;
}
Expand Down

0 comments on commit a8110f6

Please sign in to comment.