Skip to content

Commit 62fd47e

Browse files
artongenextcloud-command
authored andcommitted
fix(files): Inhibit download for non downloadable nodes in all contexts
Signed-off-by: Louis Chmn <[email protected]>
1 parent e91840a commit 62fd47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)