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 e91840a61a
commit 62fd47ee2c

View file

@ -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
}