I am working on a D7 and very much need to control access to files, is a D7 port on the roadmap?

CommentFileSizeAuthor
#7 file_access.zip13.58 KBkaizerking

Comments

likewhoa’s picture

Title: D7 Port » Port File Access to Drupal 7
Component: Code » Miscellaneous
Category: feature » task
Priority: Major » Normal
Issue tags: +drupal 7 port

This has my interest.

mattman’s picture

Status: Active » Postponed

I will eventually have personal needs to update this module. I don't currently have the immediate time to do so. If anyone does write a d7 port I'll certainly be happy to look at it.

xano’s picture

I need a solution that uses hook_field_access() to perform file access control. This would make the module a lot more usable, because it can be used with any form of field access control.

If you agree, I can take over the module to maintain the D7 branch.

mattman’s picture

It won't be until the later part of this year before I can find the time to work on this so I'll give you access.

xano’s picture

Thank! Jut to clarify, my plan is to create a much smaller module than the D6 version, where the hook_file_download_access() implementation simply returns the value returned by the hook_field_access() implementations for the file's field.

farhadhf’s picture

Any update on this?

kaizerking’s picture

StatusFileSize
new13.58 KB

here is D7
I wonder if some one can do it access per user like content access using ACL API module

giuvax’s picture

subscribe

mattman’s picture

Status: Postponed » Closed (fixed)

I've looked at the functionality of hook_field_access() as mentioned by Xano in #5 and I've determined that this is too high up in the chain of processing. The endpoint for this module is the file itself and I wanted the module to be able to determine if the file itself can be downloaded via hook_file_download.

In my personal use case, it's possible that a given file may end up on multiple nodes and I may want one node to allow access and another not. Above this can sit some form of field based control or node based view control.

While the module does have a field in the database for the node id, this is something I'm still working on. My personal needs are more towards role based access control.

With the initial work of the D7 port done, I can chip away at some of the smaller features.

Given this issue was opened in 2011 I'm certainly open to collaboration with anyone who shares this module's vision.

mattman’s picture