diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-07-07 16:33:23 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-07-07 16:33:23 +0200 |
commit | 8ddff52c517649ce1f18ac7c6a022d41493cd4e2 (patch) | |
tree | ff266b029f741d02ac6c522895cd17ce7b663944 /apps/files_sharing/js | |
parent | 268af9039ae4671be50863f852def8a0db0c7e08 (diff) | |
download | nextcloud-server-8ddff52c517649ce1f18ac7c6a022d41493cd4e2.tar.gz nextcloud-server-8ddff52c517649ce1f18ac7c6a022d41493cd4e2.zip |
Do not show recipient for link shares in file list
In the "Shared with link" section, the share_with field can contain a
value when a password was set.
This fix prevents this value to be shown as it is not intended for the
end user.
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index e643618e774..aa5980ca2c1 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -179,7 +179,9 @@ file.permissions = share.permissions; } else { - file.share.targetDisplayName = share.share_with_displayname; + if (share.share_type !== OC.Share.SHARE_TYPE_LINK) { + file.share.targetDisplayName = share.share_with_displayname; + } file.name = OC.basename(share.path); file.path = OC.dirname(share.path); file.permissions = OC.PERMISSION_ALL; |