Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save colepacak/3aa80d1ac201372b34398d6ddc7feda5 to your computer and use it in GitHub Desktop.
Save colepacak/3aa80d1ac201372b34398d6ddc7feda5 to your computer and use it in GitHub Desktop.
Add order status of checkout_checkout
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