Filter out share owner in sharee suggestion list
This commit is contained in:
parent
fa7996aa8a
commit
f99fcd5dd6
|
@ -149,6 +149,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter out the owner of the share
|
// 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 shares = view.model.get('shares');
|
||||||
var sharesLength = shares.length;
|
var sharesLength = shares.length;
|
||||||
|
|
Loading…
Reference in New Issue