summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-07 16:33:23 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-07 16:33:23 +0200
commit8ddff52c517649ce1f18ac7c6a022d41493cd4e2 (patch)
treeff266b029f741d02ac6c522895cd17ce7b663944 /apps/files_sharing/js
parent268af9039ae4671be50863f852def8a0db0c7e08 (diff)
downloadnextcloud-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.js4
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;