Hello,

why does the filefield_file_download() not consider the node access but the field access only?

(FileField access control works only when the Module "Content Permission" is activated, in the filefield_file_download(), there return is only -1, when the filefield is not accessible...)

So I can not control the access for files in filefields without activating Module "Content Permission"?

Best Regards

Adriana

Comments

WorldFallz’s picture

Actually, files are only bound to node access permissions when using the 'private' file system setting. See My receipe for mixed private/public file system for how to handle node based file access control without having to use the 'private' setting (which has undesirable side effects).

mikolaskova’s picture

thank you, but I'm using the private file system, and it's ok for me, my problem is the filefield_file_download (http://drupal.org/node/609458)