From e94819ed7f232446926db5b5c0f3df0d926c834b Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 17 Sep 2022 17:38:55 +0200 Subject: [PATCH] added option to override verbose for automated checks --- src/Controller/DomainController.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Controller/DomainController.php b/src/Controller/DomainController.php index bafd6b0..28ce927 100644 --- a/src/Controller/DomainController.php +++ b/src/Controller/DomainController.php @@ -127,11 +127,16 @@ class DomainController /** * @return bool */ - function checkPermissions(): bool + function checkPermissions(bool $disableVerbose = false): bool { $setupIsValid = true; - $verbose = $this->configController->getConfig(configKey: 'verbose'); - + + if (!$disableVerbose) { + $verbose = $this->configController->getConfig(configKey: 'verbose'); + } else { + $verbose = false; + } + $this->logger->debug(message: "checkPermissions()"); if ($verbose) {