Is this behavior possible with Field Permissions? For each node, there should be a choice whether the file upload is private or public. And another choice whether anonymous users can still see the title of the private files or not.

This is a great way to entice visitors to be able to see a glimpse of the files that are available on the site, but must login to see what it is. Like how would visitors know what they can download or if they even want to login, if they can't see at least the title or description of it?

Scenario: I made a Downloads content type. Expected for each download node to have one file with its own privacy option: public or private.

Reality: The user interface for field permissions only seems to have option for all nodes, not individual ones. And if a field is private, no one can see the title of it for anonymous users.

Wonder if this makes sense? Can this be fixed?

Comments

goldlilys’s picture

Issue summary: View changes

for

mariacha1’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This is outside the scope of the field permissions module. What is described here is more of a changing of the display mode per role. This could be done with something like https://www.drupal.org/project/view_mode_per_role possibly, or could be done with Panelizer or custom code.

Also, what might be missing here is the use of private files:
https://www.drupal.org/documentation/modules/file