Dear all, I'm a newbie to Drupal and got a bit confused about the Drupal filesystem.
As far as I've understood you can set a public folder whose content is freely
accessible by the web and a private folder whose content is not (this because
in the .htaccess there is a "Deny from all" directive.
I'd like to have something more advanced than that though.
My scenario is similar to this: I'm running an online course and my website has a student role
and a teacher role. I have three kind of files that I'd whose access I'd like to control.
So I have a outline.pdf file (containing the topics covered in the course) that I'd like to be freely
accessible to everybody at http://host/publicfilespath/outline.pdf.
I then have homework.pdf that I only would like to be accessible to "student" and to "teacher" roles at the address http://host/studentfilespath/homework.pdf, but not to people not belonging to these roles.
I then have a solutions.pdf file that I only want it to be accessible to "teacher" role at the address
http://host/teachersfilespath/solutions.pdf.
Is there any way to get such a granular control over the access of directories?
Can you please help me, or give me some suggestions?
I thank you all in advance for your help,
Regards, Luca