Skip to content

Commit aef75b5

Browse files
committed
fix: Only show share permission if re-sharable
Signed-off-by: nfebe <[email protected]>
1 parent 08dc4aa commit aef75b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
data-cy-files-sharing-share-permissions-checkbox="update">
196196
{{ t('files_sharing', 'Edit') }}
197197
</NcCheckboxRadioSwitch>
198-
<NcCheckboxRadioSwitch v-if="config.isResharingAllowed && share.type !== ShareType.Link"
198+
<NcCheckboxRadioSwitch v-if="resharingIsPossible"
199199
:disabled="!canSetReshare"
200200
:checked.sync="canReshare"
201201
data-cy-files-sharing-share-permissions-checkbox="share">
@@ -556,6 +556,9 @@ export default {
556556
return t('files_sharing', 'Update share')
557557
558558
},
559+
resharingIsPossible() {
560+
return this.config.isResharingAllowed && (this.share.type !== ShareType.Link || this.share.type !== ShareType.Email)
561+
},
559562
/**
560563
* Can the sharer set whether the sharee can edit the file ?
561564
*

0 commit comments

Comments
 (0)