diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-05-05 18:06:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 18:06:09 +0200 |
commit | 32e56dee89154aac5ec66cc2dbf10704ee823fba (patch) | |
tree | 2a51a4ebb34f86e0baa7814b5422eedae3e667fe /apps/files_sharing/src | |
parent | 09d7854d0e5143c460211341c1af4aba348f714e (diff) | |
parent | edecd0931e009a9254a7b7c8209a5877f9073330 (diff) | |
download | nextcloud-server-32e56dee89154aac5ec66cc2dbf10704ee823fba.tar.gz nextcloud-server-32e56dee89154aac5ec66cc2dbf10704ee823fba.zip |
Merge pull request #20825 from nextcloud/fix/sharing-own-group
Diffstat (limited to 'apps/files_sharing/src')
-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 |