From edecd0931e009a9254a7b7c8209a5877f9073330 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 5 May 2020 12:17:07 +0200 Subject: Fix filtering our owner & current user from shares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- apps/files_sharing/src/components/SharingInput.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 2dcce612508..d4ba4f91624 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 -- cgit v1.2.3