diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2025-04-29 16:42:09 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2025-04-29 21:26:50 +0200 |
commit | b1a44b4d72cd0e02c32a8fae75d248e1c65383c5 (patch) | |
tree | 3302a4fdd3131223667b02d2b1a5d840e817b556 /apps/files_sharing/src | |
parent | 84e9aff8471785b8623106b4848721a5a680a2bb (diff) | |
download | nextcloud-server-fix/public-owner-scope.tar.gz nextcloud-server-fix/public-owner-scope.zip |
fix(dav): check the owner displayName scope before giving attributefix/public-owner-scope
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue b/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue index 31b66741698..ec6348606fb 100644 --- a/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue +++ b/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue @@ -6,7 +6,7 @@ <NcNoteCard v-if="note.length > 0" class="note-to-recipient" type="info"> - <p v-if="user" class="note-to-recipient__heading"> + <p v-if="displayName" class="note-to-recipient__heading"> {{ t('files_sharing', 'Note from') }} <NcUserBubble :user="user.id" :display-name="user.displayName" /> </p> @@ -28,13 +28,13 @@ import NcUserBubble from '@nextcloud/vue/components/NcUserBubble' const folder = ref<Folder>() const note = computed<string>(() => folder.value?.attributes.note ?? '') +const displayName = computed<string>(() => folder.value?.attributes['owner-display-name'] ?? '') const user = computed(() => { const id = folder.value?.owner - const displayName = folder.value?.attributes?.['owner-display-name'] if (id !== getCurrentUser()?.uid) { return { id, - displayName, + displayName: displayName.value, } } return null |