From 0b996b8e218cabf86084ad1c5ce0347a8c68276e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 21 Feb 2024 11:29:56 +0100 Subject: [PATCH] fix: apply config flag for accessible features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/ConfigService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 1ab6e65ae7d..c98a704897d 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -21,6 +21,9 @@ public function isRichEditingEnabled(): bool { } public function isRichWorkspaceAvailable(): bool { + if ($this->config->getSystemValueBool('enable_non-accessible_features', true) === false) { + return false; + } return $this->config->getAppValue(Application::APP_NAME, 'workspace_available', '1') === '1'; }