Skip to content

Commit

Permalink
Merge pull request #5406 from nextcloud/backport/5404/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: apply config flag for accessible features
  • Loading branch information
juliusknorr authored Feb 21, 2024
2 parents 4479988 + 0b996b8 commit bc284cf
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 bc284cf

Please sign in to comment.