Skip to content

Commit

Permalink
Merge pull request #49789 from nextcloud/backport/49747/stable27
Browse files Browse the repository at this point in the history
[stable27] Hide share edit options when user can not edit the share
  • Loading branch information
sorbaugh authored Dec 11, 2024
2 parents 4faa061 + a7061f7 commit b49a8a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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 @@ -46,7 +46,8 @@
:toggle="showDropdown"
@open-sharing-details="openShareDetailsForCustomSettings(share)" />
</div>
<NcButton class="sharing-entry__action"
<NcButton v-if="share.canEdit"
class="sharing-entry__action"
:aria-label="t('files_sharing', 'Open Sharing Details')"
type="tertiary-no-background"
@click="openSharingDetails(share)">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div ref="quickShareDropdownContainer"
<div v-if="share.canEdit"
ref="quickShareDropdownContainer"
:class="{ 'active': showDropdown, 'share-select': true }">
<span :id="dropdownId"
class="trigger-text"
Expand Down
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 b49a8a5

Please sign in to comment.