Skip to content
Snippets Groups Projects
Commit 99f9f7c3 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #17343 from owncloud/share-disablepluginwhennocoreshare

Do not register JS share plugin if core sharing API is disabled
parents 063071b5 e65034e4
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,10 @@
* @param {OCA.Files.FileList} fileList file list to be extended
*/
attach: function(fileList) {
// core sharing is disabled/not loaded
if (!OC.Share) {
return;
}
if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment