mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
Fix filtering our owner & current user from shares
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
09d7854d0e
commit
edecd0931e
3 changed files with 24 additions and 22 deletions
28
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
28
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue