1 node.module node_file_download_access($field, $entity_type, $entity)

Implements hook_file_download_access().

File

core/modules/node/node.module, line 3722
The core module that allows content to be submitted to the site.

Code

function node_file_download_access($field, $entity_type, $entity) {
  if ($entity_type == 'node') {
    return node_access('view', $entity);
  }
}