mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Do not register JS share plugin if core sharing API is disabled
This commit is contained in:
parent
063071b58d
commit
e65034e4bc
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue