diff --git a/apps/files_sharing/js/dist/files_sharing_tab.js b/apps/files_sharing/js/dist/files_sharing_tab.js index 58b64d76821075390d7eaae11cbb3c7fd5384acb..2d94a8b26973b1b57a39e4adc79fd9644c8d9e2a 100644 Binary files a/apps/files_sharing/js/dist/files_sharing_tab.js and b/apps/files_sharing/js/dist/files_sharing_tab.js differ diff --git a/apps/files_sharing/js/dist/files_sharing_tab.js.map b/apps/files_sharing/js/dist/files_sharing_tab.js.map index 447dd896916f038fd34410c594008637de0f7ff8..c13ca7038524db38451d41c7d4f2c932a5febb0d 100644 Binary files a/apps/files_sharing/js/dist/files_sharing_tab.js.map and b/apps/files_sharing/js/dist/files_sharing_tab.js.map differ diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 2dcce612508b2251d71955ac9c0a6ec9848fbced..d4ba4f91624d58c0be423ae7481ed2bf5dc0d819 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -306,14 +306,16 @@ export default { return arr } try { - // filter out current user - if (share.value.shareWith === getCurrentUser().uid) { - return arr - } + if (share.value.shareType === this.SHARE_TYPES.SHARE_TYPE_USER) { + // filter out current user + if (share.value.shareWith === getCurrentUser().uid) { + return arr + } - // filter out the owner of the share - if (this.reshare && share.value.shareWith === this.reshare.owner) { - return arr + // filter out the owner of the share + if (this.reshare && share.value.shareWith === this.reshare.owner) { + return arr + } } // filter out existing mail shares