Merge pull request #57174 from nextcloud/artonge/fix/inhibit_download

fix(files): Inhibit download for non downloadable nodes in all contexts
This commit is contained in:
Louis 2025-12-20 10:18:04 +01:00 committed by GitHub
commit 531d4b08e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -367,7 +367,7 @@ export default defineComponent({
const metaKeyPressed = event.ctrlKey || event.metaKey || event.button === 1
if (metaKeyPressed || !this.defaultFileAction) {
// If no download permission, then we can not allow to download (direct link) the files
if (isPublicShare() && !isDownloadable(this.source)) {
if (!isDownloadable(this.source)) {
return
}

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long