function crm_core_contact_file_download_access in CRM Core 7
Implements hook_file_download_access().
File
- modules/
crm_core_contact/ crm_core_contact.module, line 964 - Provides default CRM Core Contact entities and the ability to create more.
Code
function crm_core_contact_file_download_access($file_item, $entity_type, $entity) {
if ($entity_type == 'crm_core_contact') {
return crm_core_contact_access('view', $entity);
}
}