Needs review
Project:
Node Option Premium
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2011 at 08:32 UTC
Updated:
16 Mar 2012 at 10:34 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| files.patch | 1.46 KB | ermannob |
Comments
Comment #1
anrikun commentedThanks! I'll have a look at this.
Comment #2
Taxoman commentedSubscribing
Comment #3
carl.brown commentedDo 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!
Comment #4
joemaine commentedSubscribing
Would love to see this patch work for Drupal 7
Comment #5
ermannob commentedI'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
Comment #6
josaku commentedSee #1485148: Patch to prevent downloading attachments on premium nodes for 7.x for 7.x.