Dispatch event on file download access check

Created on 8 March 2019, over 5 years ago
Updated 19 March 2023, over 1 year ago

Problem/Motivation

I need to execute custom logic after the execution of protected_file_file_download().
(I check if a token in request query string is valid.)

Proposed resolution

Dispatch event at the end of protected_file_file_download(), exposing the result for change.

Remaining tasks

  • Test & Review
  • Commit

User interface changes

None.

API changes

CheckFileAccessEvent & AccessChecker classes added.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland orlando.thoeny Switzerland πŸ‡¨πŸ‡­

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024