Use file_source to find matching share for nested link shares

This commit is contained in:
Vincent Petry 2014-06-27 17:56:09 +02:00
parent fd8b5680dd
commit 0bd17eff42
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ OC.Share={
if (data.shares) {
$.each(data.shares, function(index, share) {
if (share.share_type == OC.Share.SHARE_TYPE_LINK) {
if ( !('file_target' in share) ) {
if (itemSource === share.file_source || itemSource === share.item_source) {
OC.Share.showLink(share.token, share.share_with, itemSource);
}
} else {