function commerce_avatax_field_access in Drupal Commerce Connector for AvaTax 7.5
Implements hook_field_access().
File
- ./
commerce_avatax.module, line 48 - AvaTax service integration from Avalara, Inc.
Code
function commerce_avatax_field_access($op, $field, $entity_type, $entity, $account) {
if ($field['field_name'] == 'commerce_avatax_exemption_code' && $op == 'edit') {
return user_access('configure avatax exemptions', $account);
}
}