download_access
The download_access module's aim is to add access control granularity to viewing uploaded files.
This project is a work in progress. Check that page again within a week. Since this is a work in progress, any feature request is more than welcome. (19-02-2007)
In Drupal's core, permissions are set by role by the upload module to : upload files and view uploaded files.
It's an all-or-nothing access per role. For example, anonymous users can download all uploaded files or none of them.
This module's goals are to add "levels" of restrictions on a node basis as well, and to make it possible for one to see the attachment table in the node even when one is not allowed to download these files.
Adding "levels" of restriction on a node basis
When someone creates a node with file attachments, he will be able to specify a level of download restriction from a drop-down list. (The administrator will create these levels).
For example he may select "private". On the access control page, there will be this permission by role :
view private uploaded files
Viewing the attachment table in the node even when one is not allowed to download the files
If the administrator settings allow it, the table will be shown, but the file name will replace the link to the file.
Under the table, a message will be displayed explaining to the user that he does not have the privilege to download these files. That message will be set by the administrator per "level" of restriction.
Inspiration
This module gets its inspiration in large part from Eaton's patch for the Premium module and from my own work for the download_count module.
