Closed (fixed)
Project:
Attachment
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2006 at 01:05 UTC
Updated:
2 Mar 2006 at 05:15 UTC
I think the files attached to a node should respect the access rules applied to the node. Currently Attachments just provides files to anyone who asks for them.
| Comment | File | Size | Author |
|---|---|---|---|
| attachment.access.patch | 586 bytes | starbow |
Comments
Comment #1
keve commentedRegarding patch above:
$nid = db_result( db_query( "select nid from {attachment} where {attachment}.fid = %d", $file->fid ) );Can it happen that a 'fid' belongs to more nodes?
Comment #2
ccourtne commentedNo no through the attachments table.. Attachments are designed to belong to one and only one node. There have been requests in the past to allow sharing that would be a completley separate design and module.
Comment #3
keve commentedThanks.
+1 for above patch. I tested, it works fine for me.
Comment #4
ccourtne commentedApplied. It will get checked in after me testing.
Comment #5
(not verified) commented