fix(SharingEntry): Hide edit button if user can not edit share

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/49782/head
provokateurin 2024-12-10 10:23:50 +07:00 committed by backportbot[bot]
parent 9236da20ad
commit 5d1cbc602f
1 changed files with 2 additions and 1 deletions

@ -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"