Skip to content

Commit 266ea8f

Browse files
Merge pull request #49782 from nextcloud/backport/49747/stable28
[stable28] Disable/hide share edit options when user can not edit the share
2 parents 6308486 + 09689ad commit 266ea8f

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

apps/files_sharing/src/components/SharingEntry.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
:file-info="fileInfo"
4646
@open-sharing-details="openShareDetailsForCustomSettings(share)" />
4747
</div>
48-
<NcButton class="sharing-entry__action"
48+
<NcButton v-if="share.canEdit"
49+
class="sharing-entry__action"
4950
data-cy-files-sharing-share-actions
5051
:aria-label="t('files_sharing', 'Open Sharing Details')"
5152
type="tertiary"

apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:menu-name="selectedOption"
55
:aria-label="ariaLabel"
66
type="tertiary-no-background"
7+
:disabled="!share.canEdit"
78
force-name>
89
<template #icon>
910
<DropdownIcon :size="15" />
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4235-4235.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/9248-9248.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)