Skip to content

Commit

Permalink
Merge pull request #49783 from nextcloud/backport/49747/stable29
Browse files Browse the repository at this point in the history
[stable29] Disable/hide share edit options when user can not edit the share
  • Loading branch information
provokateurin authored Dec 11, 2024
2 parents c1451b2 + 32b2a59 commit a793438
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion apps/files_sharing/src/components/SharingEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:menu-name="selectedOption"
:aria-label="ariaLabel"
type="tertiary-no-background"
:disabled="!share.canEdit"
force-name>
<template #icon>
<DropdownIcon :size="15" />
Expand Down
3 changes: 0 additions & 3 deletions dist/2247-2247.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/2247-2247.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions dist/6972-6972.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/6972-6972.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit a793438

Please sign in to comment.