Hi,
I like this module a lot, but files attached to premium nodes are still downloadable. With this patch, files are accessible only by users who have access to premium nodes.
It's just a raw copy-paste from Upload module in Drupal core, with some tweaks in the permissions section.

CommentFileSizeAuthor
files.patch1.46 KBermannob

Comments

anrikun’s picture

Thanks! I'll have a look at this.

Taxoman’s picture

Subscribing

carl.brown’s picture

Do you know if this would work for Drupal 7?
I see the hook_file_download() has changed slightly, to accept URI instead of filepath, but that means little to me!

joemaine’s picture

Subscribing

Would love to see this patch work for Drupal 7

ermannob’s picture

I'm pretty sure this patch won't work for drupal 7. This patch is for Node Option Premium 6.x-1.2, which works only on Drupal 6.

Probably you should open a new issue "feature request" for version 7.x-1.1.

Cheers.
-ermannob

josaku’s picture