diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-23 14:53:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-23 14:53:50 +0000 |
commit | aa235ac59cff6134190da5c853594ad779f36949 (patch) | |
tree | f78b49ac58b33c45a12a6c090b03a42cd963c2fe /modules/node | |
parent | 943d9c06b0cfd9ccee5d05d3d86e67bbd48de912 (diff) | |
download | brdo-aa235ac59cff6134190da5c853594ad779f36949.tar.gz brdo-aa235ac59cff6134190da5c853594ad779f36949.tar.bz2 |
#846296 by Berdir, ridgerunner, agentrickard: Fixed file_file_download() only implements access checks for nodes and users.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index ca42c5b3e..1bc4c835f 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -3763,3 +3763,12 @@ class NodeController extends DrupalDefaultEntityController { return $query; } } + +/** + * Implements hook_file_download_access(). + */ +function node_file_download_access($field, $entity_type, $entity) { + if ($entity_type == 'node') { + return node_access('view', $entity); + } +} |