Insecure Direct Object Reference in Private File Uploads

Initial fix and test changes.

Tests WIP

Closes #3593472

Merge request reports

Loading