Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'controller/editorapicontroller.php')
-rw-r--r--controller/editorapicontroller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php
index b7d6819..9eb8af3 100644
--- a/controller/editorapicontroller.php
+++ b/controller/editorapicontroller.php
@@ -740,6 +740,10 @@ class EditorApiController extends OCSController {
$params["editorConfig"]["customization"]["macros"] = false;
}
+ //default is true
+ if($this->config->GetCustomizationPlugins() === false) {
+ $params["editorConfig"]["customization"]["plugins"] = false;
+ }
/* from system config */