Skip to content
Snippets Groups Projects
Commit edecd093 authored by John Molakvoæ's avatar John Molakvoæ Committed by npmbuildbot[bot]
Browse files

Fix filtering our owner & current user from shares

parent 09d7854d
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -306,14 +306,16 @@ export default { ...@@ -306,14 +306,16 @@ export default {
return arr return arr
} }
try { try {
// filter out current user if (share.value.shareType === this.SHARE_TYPES.SHARE_TYPE_USER) {
if (share.value.shareWith === getCurrentUser().uid) { // filter out current user
return arr if (share.value.shareWith === getCurrentUser().uid) {
} return arr
}
// filter out the owner of the share // filter out the owner of the share
if (this.reshare && share.value.shareWith === this.reshare.owner) { if (this.reshare && share.value.shareWith === this.reshare.owner) {
return arr return arr
}
} }
// filter out existing mail shares // filter out existing mail shares
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment