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

dopry’s picture

Status: Active » Closed (won't fix)

yeah its' more a hook_file_download issue... and won't be happening in 5.x-2.x