From 62fd47ee2c854b16f8f56b50c51cbd7a490a5deb Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Thu, 18 Dec 2025 12:03:39 +0100 Subject: [PATCH] fix(files): Inhibit download for non downloadable nodes in all contexts Signed-off-by: Louis Chmn --- apps/files/src/components/FileEntryMixin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 8c3683ac164..84ee48f101a 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -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 }