Skip to content

Commit 173a4ce

Browse files
artongenextcloud-command
authored andcommitted
fix(files): Inhibit download for non downloadable nodes in all contexts
Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent c1e362b commit 173a4ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/src/components/FileEntryMixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export default defineComponent({
359359
const metaKeyPressed = event.ctrlKey || event.metaKey || event.button === 1
360360
if (metaKeyPressed || !this.defaultFileAction) {
361361
// If no download permission, then we can not allow to download (direct link) the files
362-
if (isPublicShare() && !isDownloadable(this.source)) {
362+
if (!isDownloadable(this.source)) {
363363
return
364364
}
365365

0 commit comments

Comments
 (0)