summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-23 14:53:50 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-23 14:53:50 +0000
commitaa235ac59cff6134190da5c853594ad779f36949 (patch)
treef78b49ac58b33c45a12a6c090b03a42cd963c2fe /modules/user/user.module
parent943d9c06b0cfd9ccee5d05d3d86e67bbd48de912 (diff)
downloadbrdo-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.module9
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);
+ }
+}