fix(files): Inhibit download for non downloadable nodes in all contexts

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2025-12-18 12:03:39 +01:00 committed by nextcloud-command
parent dc323ee347
commit 4a021c3379

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
}