Skip to content

Commit 531d4b0

Browse files
authored
Merge pull request #57174 from nextcloud/artonge/fix/inhibit_download
fix(files): Inhibit download for non downloadable nodes in all contexts
2 parents 9019c56 + 16727bf commit 531d4b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/files/src/components/FileEntryMixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export default defineComponent({
367367
const metaKeyPressed = event.ctrlKey || event.metaKey || event.button === 1
368368
if (metaKeyPressed || !this.defaultFileAction) {
369369
// If no download permission, then we can not allow to download (direct link) the files
370-
if (isPublicShare() && !isDownloadable(this.source)) {
370+
if (!isDownloadable(this.source)) {
371371
return
372372
}
373373

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)