mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user