diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-05-05 12:17:07 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-05-05 10:28:33 +0000 |
commit | edecd0931e009a9254a7b7c8209a5877f9073330 (patch) | |
tree | 2a51a4ebb34f86e0baa7814b5422eedae3e667fe /apps/files_sharing/src/components/SharingInput.vue | |
parent | 09d7854d0e5143c460211341c1af4aba348f714e (diff) | |
download | nextcloud-server-edecd0931e009a9254a7b7c8209a5877f9073330.tar.gz nextcloud-server-edecd0931e009a9254a7b7c8209a5877f9073330.zip |
Fix filtering our owner & current user from shares
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 16 |
1 files changed, 9 insertions, 7 deletions
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 |