From aa235ac59cff6134190da5c853594ad779f36949 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 23 Aug 2010 14:53:50 +0000 Subject: #846296 by Berdir, ridgerunner, agentrickard: Fixed file_file_download() only implements access checks for nodes and users. --- modules/user/user.module | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/user/user.module') 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); + } +} -- cgit v1.2.3