Skip to content

Allow Admins to download files directly from admin view#2627

Merged
monkeyiq merged 1 commit intofilesender:development3from
victoritis:bug/admin-download-files-from-admin-view
Mar 17, 2026
Merged

Allow Admins to download files directly from admin view#2627
monkeyiq merged 1 commit intofilesender:development3from
victoritis:bug/admin-download-files-from-admin-view

Conversation

@victoritis
Copy link
Copy Markdown

Summary

Closes #2614 — admin users were unable to download files from the transfer detail page because the download endpoint only checked for transfer ownership ($user->id == $transfer->userid), excluding admins.

Replace the ownership check with $transfer->havePermission(), which returns true for both the transfer owner and admin users.

Changes

  • classes/rest/endpoints/RestEndpointTransfer.class.php: replace $user->id == $transfer->userid with $transfer->havePermission()

@monkeyiq monkeyiq merged commit bba9067 into filesender:development3 Mar 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants