diff --git a/lib/Capabilities.php b/lib/Capabilities.php index bdae0a43f5..5260ec08df 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']) && $this->config->getAppValue('mobile_editing') ?: false, + 'direct_editing' => ($collaboraCapabilities['hasMobileSupport'] ?? false) && $this->config->getAppValue('mobile_editing', 'yes') === 'yes', 'templates' => isset($collaboraCapabilities['hasTemplateSaveAs']) || isset($collaboraCapabilities['hasTemplateSource']) ?: false, 'productName' => $this->capabilitiesService->getProductName(), 'config' => [