Skip to content

Commit ec0ee87

Browse files
artongeedward-ly
authored andcommitted
fix(files): Inhibit download for non downloadable nodes in all contexts
Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent 017e773 commit ec0ee87

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
@@ -321,7 +321,7 @@ export default defineComponent({
321321
const metaKeyPressed = event.ctrlKey || event.metaKey || event.button === 1
322322
if (metaKeyPressed || !this.defaultFileAction) {
323323
// If no download permission, then we can not allow to download (direct link) the files
324-
if (isPublicShare() && !isDownloadable(this.source)) {
324+
if (!isDownloadable(this.source)) {
325325
return
326326
}
327327

0 commit comments

Comments
 (0)