- Issue created by @kksandr
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.
Replace the hook_ENTITY_TYPE_access hook for files with the hook_file_download hook.
Active
1.0
Code