Skip web stuff when registering monitoring module on CLI
This commit is contained in:
parent
b6e7d5c4c1
commit
d1e61a1826
|
@ -5,6 +5,10 @@ use Icinga\Application\Icinga;
|
|||
use Icinga\Module\Monitoring\DataView\StatusSummary as StatusSummaryView;
|
||||
use Icinga\Web\Topbar;
|
||||
|
||||
if (Icinga::app()->isCli()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$request = Icinga::app()->getFrontController()->getRequest();
|
||||
|
||||
if (AuthManager::getInstance()->isAuthenticated()) {
|
||||
|
|
Loading…
Reference in New Issue