diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 17:06:07 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 19:55:48 +0100 |
commit | 86689ef40033f117154f9f6e65359cdad39530e9 (patch) | |
tree | 7dfff2bbf0618aff7bedabd8027ffdb40196a380 /apps/files_sharing/js | |
parent | bd888748bd9d0d9e9268447501fe35abf121083b (diff) | |
download | nextcloud-server-86689ef40033f117154f9f6e65359cdad39530e9.tar.gz nextcloud-server-86689ef40033f117154f9f6e65359cdad39530e9.zip |
Disable JS plugin for sharing in public mode
This removes the logic that registers the share action and modifies the
rows. Share actions aren't needed in the public file list.
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 3a16c1f2edd..11c3170c2f0 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -25,7 +25,7 @@ * @param {OCA.Files.FileList} fileList file list to be extended */ attach: function(fileList) { - if (fileList.id === 'trashbin') { + if (fileList.id === 'trashbin' || fileList.id === 'files.public') { return; } var fileActions = fileList.fileActions; |