Merge pull request #20830 from nextcloud/backport/20825/stable18

This commit is contained in:
John Molakvoæ 2020-05-06 09:03:01 +02:00 committed by GitHub
commit 7a8db43e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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