Make isClamavEnabled an attribute

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-19 12:01:53 +01:00
parent bebae7069b
commit f8a244bee2
5 changed files with 10 additions and 24 deletions

View file

@ -88,11 +88,7 @@ readonly class ConfigurationController {
$this->configurationManager->SetCollaboraEnabledState(0);
$this->configurationManager->SetOnlyofficeEnabledState(0);
}
if (isset($request->getParsedBody()['clamav'])) {
$this->configurationManager->SetClamavEnabledState(1);
} else {
$this->configurationManager->SetClamavEnabledState(0);
$this->configurationManager->isClamavEnabled = isset($request->getParsedBody()['clamav']);
}
if (isset($request->getParsedBody()['talk'])) {
$this->configurationManager->SetTalkEnabledState(1);