Skip to content

Commit 858d236

Browse files
committed
fix: Fix check for download permissions
This has been broken since it was refactored in 208ff80, although it seems that the method was not used anywhere (not even when it was refactored). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
1 parent a7a6ef4 commit 858d236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/src/models/Share.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export default class Share {
422422
const hasDisabledDownload = (attribute) => {
423423
return attribute.scope === 'permissions' && attribute.key === 'download' && attribute.value === false
424424
}
425-
return this.attributes.some(hasDisabledDownload)
425+
return !this.attributes.some(hasDisabledDownload)
426426
}
427427

428428
/**

0 commit comments

Comments
 (0)