Should check for yes if guest checkout is enabled

This commit is contained in:
Gerhard 2014-02-26 13:30:08 +02:00 committed by Coen Jacobs
parent 2920fe0354
commit 0b3d21c104
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ function wc_customer_has_capability( $allcaps, $caps, $args ) {
}
$order = new WC_Order( $order_id );
if ( $user_id == $order->user_id || empty( $order->user_id ) || 'no' == get_option( 'woocommerce_enable_guest_checkout' ) ) {
if ( $user_id == $order->user_id || empty( $order->user_id ) || 'yes' == get_option( 'woocommerce_enable_guest_checkout' ) ) {
$allcaps['pay_for_order'] = true;
}