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/user/user.module | |
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/user/user.module')
-rw-r--r-- | modules/user/user.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index e85ceff35..c4b02f91c 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3684,3 +3684,12 @@ function user_rdf_mapping() { ), ); } + +/** + * Implements hook_file_download_access(). + */ +function user_file_download_access($field, $entity_type, $entity) { + if ($entity_type == 'user') { + return user_view_access($entity); + } +} |