Skip to content

Commit

Permalink
Merge pull request #5404 from nextcloud/fix/acceesible-feature-flag
Browse files Browse the repository at this point in the history
fix: apply config flag for accessible features
  • Loading branch information
juliushaertl committed Feb 21, 2024
2 parents 9cc5d21 + f580f02 commit a1e735f
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 a1e735f

Please sign in to comment.