File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
apps/files_sharing/src/views Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 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 *
You can’t perform that action at this time.
0 commit comments