Move access check to hook_file_download

Created on 14 May 2024, 7 months ago

Problem/Motivation

Hello, to support third-party routes that process private files and better compatibility with the kernel, it is better to move the access check to hook_file_download.

This hook is executed by all controllers that want to grant access to a private file. Therefore, user controllers also perform it if they want to check access.

Steps to reproduce

Proposed resolution

Replace the hook_ENTITY_TYPE_access hook for files with the hook_file_download hook.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024