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 a20ac24 commit f580f02
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 @@ -22,6 +22,9 @@ public function isRichEditingEnabled(): bool {
}

public function isRichWorkspaceAvailable(): bool {
if ($this->config->getSystemValueBool('enable_non-accessible_features', true) === false) {
return false;
}
return $this->appConfig->getValueString(Application::APP_NAME, 'workspace_available', '1') === '1';
}

Expand Down

0 comments on commit f580f02

Please sign in to comment.