Skip to content

Provides a simple permission to allow downloading of private files per directory with by-user and by-role filters.

License

Notifications You must be signed in to change notification settings

backdrop-contrib/private_files_download_permission

Repository files navigation

Private files download permission

Provides a simple permission to allow downloading of private files per-directory by-user and by-role filter.

Installation

Configuration

Browse to Configuration > Media > Private files download permission (/admin/config/media/private-files-download-permission). Then add or edit each directory path you want to put under control, associating users and roles which are allowed to download from that location. All directory paths are relative to your private file system path, but must have a leading slash ('/'), as the private file system root itself could be put under control.

E.g.: Suppose your private file system path is /opt/private. You could configure /opt/private (and all of its subdirectories) by adding a '/' entry, while a '/test' entry would specifically refer to /opt/private/test (and all of its subdirectories).

Please note that per-user checks may slow your site if there are plenty of users. You can then bypass this feature by browsing to Configuration > Media > Private files download permission > Preferences ( /admin/config/media/private-files-download-permission/preferences) and change the setting accordingly. Additional settings are available to cache users and/or log activities.

Also configure which users and roles have access to the module configuration under People > Permissions (/admin/people/permissions).

Issues

Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers

Credits

Idea and code were inspired by http://www.beacon9.ca/labs/drupal-7-private-files-module. Partly sponsored by Cooperativa Italiana Artisti.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Provides a simple permission to allow downloading of private files per directory with by-user and by-role filters.

Resources

License

Stars

Watchers

Forks

Packages

No packages published