From aef75b57f5d62ffc209bae3cf1edd257c8b903da Mon Sep 17 00:00:00 2001 From: nfebe Date: Mon, 18 Nov 2024 17:43:43 +0100 Subject: [PATCH] fix: Only show share permission if re-sharable Signed-off-by: nfebe --- apps/files_sharing/src/views/SharingDetailsTab.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index 3ed492344a2a5..e62a511772d01 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -195,7 +195,7 @@ data-cy-files-sharing-share-permissions-checkbox="update"> {{ t('files_sharing', 'Edit') }} - @@ -556,6 +556,9 @@ export default { return t('files_sharing', 'Update share') }, + resharingIsPossible() { + return this.config.isResharingAllowed && (this.share.type !== ShareType.Link || this.share.type !== ShareType.Email) + }, /** * Can the sharer set whether the sharee can edit the file ? *