Filter out share owner in sharee suggestion list

This commit is contained in:
Roeland Jago Douma 2015-12-23 10:38:53 +01:00
parent fa7996aa8a
commit f99fcd5dd6
1 changed files with 9 additions and 0 deletions

View File

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