Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have a role Member.
On a page that only members can view, I have added a link to a PDF file inside the body field.
I don't want anonymous users to be able to access the PDF if they know its URL so I put the PDF in my private file system directory so the href is /system/files/myfile.pdf
Because I don't want my Backup & Migrate backups to be accessible by anonymous users I checked the "Disable serving of private files" checkbox.
But now nobody even user 1 can access /system/files/myfile.pdf
How can I tell Drupal that users with certain roles can actually access this PDF ?
Thank you !
Comments
Comment #1
moalla316 CreditAttribution: moalla316 commentedcheck it here: https://drupal.org/node/1792780
and then this module: https://drupal.org/project/private_files_download_permission
Comment #2
thalles