aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-12-12 17:11:22 +0100
committerGitHub <noreply@github.com>2024-12-12 17:11:22 +0100
commit5df643cf370dd60f32e81d6eb560fa38596195d1 (patch)
tree91b7be8beb99992f8ff0137f0997b80596eb202c /apps
parent1bac88b16823cb28b4e0091a9373869b2277b4d7 (diff)
parent7aa8d549e5ee1133df1d56a46cf6ef307a62bc1f (diff)
downloadnextcloud-server-5df643cf370dd60f32e81d6eb560fa38596195d1.tar.gz
nextcloud-server-5df643cf370dd60f32e81d6eb560fa38596195d1.zip
Merge pull request #49784 from nextcloud/backport/49747/stable30
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue3
-rw-r--r--apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue1
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index 23127a6fe16..c638be18069 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -28,7 +28,8 @@
:file-info="fileInfo"
@open-sharing-details="openShareDetailsForCustomSettings(share)" />
</div>
- <NcButton class="sharing-entry__action"
+ <NcButton v-if="share.canEdit"
+ class="sharing-entry__action"
data-cy-files-sharing-share-actions
:aria-label="t('files_sharing', 'Open Sharing Details')"
type="tertiary"
diff --git a/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue b/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue
index f0c2c4f3812..30131bcf79b 100644
--- a/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue
+++ b/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue
@@ -8,6 +8,7 @@
:menu-name="selectedOption"
:aria-label="ariaLabel"
type="tertiary-no-background"
+ :disabled="!share.canEdit"
force-name>
<template #icon>
<DropdownIcon :size="15" />