Created
September 7, 2016 16:32
-
-
Save colepacak/3aa80d1ac201372b34398d6ddc7feda5 to your computer and use it in GitHub Desktop.
Add order status of checkout_checkout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/commerce_billy_pdf/commerce_billy_pdf.module b/modules/commerce_billy_pdf/commerce_billy_pdf.module | |
index bb9a13d..8af41b0 100644 | |
--- a/modules/commerce_billy_pdf/commerce_billy_pdf.module | |
+++ b/modules/commerce_billy_pdf/commerce_billy_pdf.module | |
@@ -49,7 +49,7 @@ function commerce_billy_pdf_view_access($order) { | |
if ($order->status == 'canceled' && user_access('administer commerce_order entities')) { | |
return TRUE; | |
} | |
- elseif ($order->status != 'invoiced') { | |
+ elseif ($order->status != 'invoiced' && $order->status != 'checkout_checkout') { | |
return FALSE; | |
} | |
return commerce_order_customer_order_view_access($order); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment