Skip to content

Commit

Permalink
Remove reshare owner entry from the share list
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and ArtificialOwl committed Oct 31, 2018
1 parent 0925bbc commit 692b892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/js/sharedialogshareelistview.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,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);
Expand Down

0 comments on commit 692b892

Please sign in to comment.