Merge pull request #57532 from nextcloud/backport/57174/stable31

[stable31] fix(files): Inhibit download for non downloadable nodes in all contexts
This commit is contained in:
Andy Scherzinger 2026-01-18 22:53:25 +01:00 committed by GitHub
commit d8a14a084b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -321,7 +321,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