Merge pull request #49789 from nextcloud/backport/49747/stable27

[stable27] Hide share edit options when user can not edit the share
This commit is contained in:
Stephan Orbaugh 2024-12-11 14:14:51 +01:00 committed by GitHub
commit b49a8a5cd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View file

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

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long