Closed (won't fix)
Project:
FileField
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2008 at 00:18 UTC
Updated:
30 Nov 2008 at 20:11 UTC
I'm using og_files to upload files for a OG group. hook_file_download implementation of filefield denies users to download files uploaded by filefield, so I have to add permission: "view filefiled uploads" to let users download files uploaded by og_files!
Notice, I have file "file downloads" set to private.
current code into filefield_file_download() says:
// @todo: check the node for this file to be referenced in a field
// to determine if it is managed by filefield. and do the access denied part here.
if (!user_access('view filefield uploads')) {
// sorry you do not have the proper permissions to view
// filefield uploads.
return -1;
}
It seems that doing the "@todo" will solve the problem.
Blessings!
Comments
Comment #1
dopry commentedyeah its' more a hook_file_download issue... and won't be happening in 5.x-2.x