]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sharing: Fix false positived v. 2
authorThomas Tanghus <thomas@tanghus.net>
Tue, 27 Nov 2012 22:01:26 +0000 (23:01 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 27 Nov 2012 22:01:26 +0000 (23:01 +0100)
core/js/share.js

index 0f71ae2241912403e79b296b1f751d9b0a0d95da..475abb58bffd6b3eea7fba8b1cef0bc539af5bc7 100644 (file)
@@ -146,7 +146,7 @@ OC.Share={
        showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions) {
                var data = OC.Share.loadItem(itemType, itemSource);
                var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
-               if (data.reshare) {
+               if (data !== false && data.reshare !== false && data.reshare.uid_owner !== undefined) {
                        if (data.reshare.share_type == OC.Share.SHARE_TYPE_GROUP) {
                                html += '<span class="reshare">'+t('core', 'Shared with you and the group {group} by {owner}', {group: data.reshare.share_with, owner: data.reshare.uid_owner})+'</span>';
                        } else {