Access control read
function receives empty id
when accessing media entity file URL
#11263
Labels
status: needs-triage
Possible bug which hasn't been reproduced yet
Describe the Bug
When implementing access control on a media collection's read property, the id and data parameters are always empty when accessing the media URL. This prevents proper access control based on file ownership.
Expected behavior
The id parameter should contain the media item's ID, allowing for proper access control.
Actual behavior
id and data are empty, making it impossible to secure media files correctly.
Additional context
Link to the code that reproduces this issue
https://github.com/timothylp/upload-empty-data-access-bug
Reproduction Steps
pnpx create-payload-app -t blank
.Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: