Merge pull request #17343 from owncloud/share-disablepluginwhennocoreshare

Do not register JS share plugin if core sharing API is disabled
This commit is contained in:
Morris Jobke 2015-07-02 17:26:43 +02:00
commit 99f9f7c3c4

View file

@ -25,6 +25,10 @@
* @param {OCA.Files.FileList} fileList file list to be extended * @param {OCA.Files.FileList} fileList file list to be extended
*/ */
attach: function(fileList) { attach: function(fileList) {
// core sharing is disabled/not loaded
if (!OC.Share) {
return;
}
if (fileList.id === 'trashbin' || fileList.id === 'files.public') { if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return; return;
} }