aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-12 10:41:41 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-07-12 20:14:30 +0200
commit9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369 (patch)
treee39514c2cd1e51150075dff10c36c664d2d53ab2 /apps/files_versions
parent62defbd6b4dded5cdb4d76efe947231cc310263b (diff)
downloadnextcloud-server-9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369.tar.gz
nextcloud-server-9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369.zip
fix(files_sharing): adjust IAttributes API and files_versions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/src/components/Version.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue
index c6d44edaf06..7c3bb4758de 100644
--- a/apps/files_versions/src/components/Version.vue
+++ b/apps/files_versions/src/components/Version.vue
@@ -259,7 +259,7 @@ export default defineComponent({
const downloadAttribute = this.fileInfo.shareAttributes
.find((attribute) => attribute.scope === 'permissions' && attribute.key === 'download') || {}
// If the download attribute is set to false, the file is not downloadable
- if (downloadAttribute?.enabled === false) {
+ if (downloadAttribute?.value === false) {
return false
}
}