Skip to content

Commit

Permalink
fix: apply config flag for accessible features
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Feb 21, 2024
1 parent c281d0e commit 0b996b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Service/ConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 0b996b8

Please sign in to comment.