fix: Load preview URL for download-disabled shares by susnux · Pull Request #2484 · nextcloud/viewer

Base automatically changed from fix/hide-download-correctly to master

September 15, 2024 10:56

An error occurred while trying to automatically change base from fix/hide-download-correctly to master

September 15, 2024 10:56

@susnux susnux marked this pull request as ready for review

October 28, 2024 18:44

skjnldsv

@susnux @skjnldsv

This was possible on Nextcloud 30 and previous due to a "bug":
The `download` permission was simply not rejected for public shares,
just a `hide` flag was set on the public share.

Now the permissions are correctly set, so loading a preview is not possible.
The work-around is to allow previews when the correct header is set.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>