aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingInput.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue16
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