Posted by transparencia on February 2, 2010 at 4:16pm
I'm using File Access, a module that allows for restrictions on file access, using the drupal private filesystem. Also I'm using CCK (Filefield), Drupal 6 and Ubercart. What I want to do is this:
User buys a node, he comes back to that same node, a PHP function checks if the user has bought the node, if yes, it gives the user File Access to access that specific CCK filefield on that specific node, if not, everything stays the same and if the user tries to download the CCK filefield, access is denied. This would override the global CCK filefield permission.
http://drupal.org/project/file_access
I'm willing to pay up to $50 for this module, contact me if you are interested.