Simplify file_entity_file_download?

Created on 14 September 2016, over 8 years ago
Updated 27 November 2024, 25 days ago

The function checks view access for the view, if that is not granted, then access is explicitly denied.

file_file_download() already checks and supports download access operation. If you implement a custom file access check, it only works if you return access allowed for both view *and* download.

download vs view is weird anyway, but having to support both is even weirder :)

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
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.71.5 2024