Remove reshare owner entry from the share list

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-10-30 14:23:00 +01:00
parent b73e03724c
commit 59377dbd50
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 0 deletions

View File

@ -371,6 +371,9 @@
if(_.isArray(sharees)) {
for (var i = 0; i < sharees.length; i++) {
data.sharees[i].popoverMenu = this.popoverMenuTemplate(sharees[i]);
if (data.sharees[i].shareType === OC.Share.SHARE_TYPE_USER && data.sharees[i].shareWith === OC.getCurrentUser().uid) {
data.sharees.splice(i, 1);
}
}
}
return OC.Share.Templates['sharedialogshareelistview'](data);