Event: served a private File

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
BLausch's picture

A short description of the problem:
Settings: File System --> Defalut download method --> Private local files served by Drupal

A user copies the url of a private PDF-File (not his file) into the browser or the user has bookmarkt the url of the private PDF-Dokument, and clicks the bookmark. Especially the user does not come from a "normal" drupal-node.

I would like to trigger this event.

Background: When opening the pdf document, I would like to check the roles and permission of the user in a separate module.

Is there a way to trigger this event ?

Greetings
Berthold

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week