Closed (won't fix)
Project:
Nodeaccess
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2008 at 10:47 UTC
Updated:
17 Feb 2011 at 22:16 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedIt can be done, but not terribly easily, but I did this before on my previous job. Essentially what I did was enable private file links (so that links go through drupal), then implement a module with a hook_file_download which queried the node id from the files table, then checked the access on that node for the current user and either allowed or denied the download.
I'll look at integrating this ability into the current module, it could be done as long as private URL's are enabled for file downloads and you're willing to take a bit of a hit on performance in downloading files ( you have the added overhead of a full drupal bootstrap for private URL's, plus the queries to check access control ).
Comment #2
mikgreen commentedHere's how it would look like:
Comment #3
Anonymous (not verified) commented