From 4a021c3379869337aba9702a9d4bc942f8daf0b0 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 a13e7f36f76..112819370bd 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -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 }