From a368e4df0f7cd70a9f886995502b21b04200ff29 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Fri, 25 Aug 2023 21:18:01 +0200 Subject: [PATCH] feat: add config option mobile_editing Signed-off-by: Luka Trovic --- lib/Capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Capabilities.php b/lib/Capabilities.php index aa9e2689d3..bdae0a43f5 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -127,7 +127,7 @@ public function getCapabilities() { 'mimetypes' => array_values($filteredMimetypes), 'mimetypesNoDefaultOpen' => array_values($optionalMimetypes), 'collabora' => $collaboraCapabilities, - 'direct_editing' => isset($collaboraCapabilities['hasMobileSupport']) ?: false, + 'direct_editing' => isset($collaboraCapabilities['hasMobileSupport']) && $this->config->getAppValue('mobile_editing') ?: false, 'templates' => isset($collaboraCapabilities['hasTemplateSaveAs']) || isset($collaboraCapabilities['hasTemplateSource']) ?: false, 'productName' => $this->capabilitiesService->getProductName(), 'config' => [