403 for all users except UID1

Created on 1 July 2021, almost 4 years ago
Updated 22 May 2024, 11 months ago

The /download path always returns access denied for all other users but user 1.

The logical thinking then is that there is some kind of permission that I havent set for anonymous users - but I really cannot figure out what it could be

I have obviously set the "media entity download" permission.

I've been digging into the code, and it appers that for all other users than UID1, this line in DownloadController.php returns a header array with a -1 value:

$headers = $this->moduleHandler()->invokeAll('file_download', [$uri]);

I guess this is a sign that the issue must not be with this module - but I was hoping someone would have an idea of why this is happening?

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡°Denmark ras-ben Copenhagen

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