]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Enable debug for first config wizard run
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 12 Apr 2018 07:02:39 +0000 (09:02 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Apr 2018 13:07:28 +0000 (15:07 +0200)
gui/baculum/protected/Web/Pages/WebConfigWizard.php

index da46661e3eda8af88b6c4ba396a44deda79e2c0e..c4290f9dccb2f86d37b08e4911a412b073e7cfb2 100644 (file)
@@ -43,6 +43,7 @@ class WebConfigWizard extends BaculumWebPage
                $this->web_config = $config->getConfig();
                $this->host_config = $this->getModule('host_config')->getConfig();
                $this->first_run = (count($this->host_config) == 0 || !key_exists(HostConfig::MAIN_CATALOG_HOST, $this->host_config));
+               Logging::$debug_enabled = Logging::$debug_enabled ?: $this->first_run;
                if($this->first_run === false && !$_SESSION['admin']) {
                        parent::accessDenied();
                }