function commerce_billy_mail_resend_access in Commerce Billy Mail 7
Access callback for the resending the invoice mail.
Deny access if order is not in status 'invoiced' or the current user does not have view access to the order itself. Furthermore admins can access 'canceled' orders (credit memo).
1 string reference to 'commerce_billy_mail_resend_access'
- commerce_billy_mail_menu in ./
commerce_billy_mail.module - Implements hook_menu().
File
- ./
commerce_billy_mail.module, line 54
Code
function commerce_billy_mail_resend_access($order) {
return commerce_billy_pdf_view_access($order) && user_access('commerce_billy_mail_resend_invoice_mail');
}