summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-23 10:38:53 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-30 08:58:04 +0100
commitf99fcd5dd6ccd0013016d8db068451e31385d3b1 (patch)
treecdbcc6d476fea869a24323189962ae911783bf98 /core
parentfa7996aa8aad67992556ba8f64cb4d7ada0d44f8 (diff)
downloadnextcloud-server-f99fcd5dd6ccd0013016d8db068451e31385d3b1.tar.gz
nextcloud-server-f99fcd5dd6ccd0013016d8db068451e31385d3b1.zip
Filter out share owner in sharee suggestion list
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index b8d07bad992..c89c1d95be9 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -149,6 +149,15 @@
}
// Filter out the owner of the share
+ if (view.model.hasReshare()) {
+ usersLength = users.length;
+ for (i = 0 ; i < usersLength; i++) {
+ if (users[i].value.shareWith === view.model.getReshareOwner()) {
+ users.splice(i, 1);
+ break;
+ }
+ }
+ }
var shares = view.model.get('shares');
var sharesLength = shares.length;