Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix filtering our owner & current user from shares
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and npmbuildbot[bot] committed May 5, 2020
commit edecd0931e009a9254a7b7c8209a5877f9073330
28 changes: 14 additions & 14 deletions apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down