mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
ConfigController: do not fail without a valid...
...deployment endpoint refs #918
This commit is contained in:
parent
9fd66dbe99
commit
b50a360ff1
@ -150,10 +150,12 @@ class ConfigController extends ActionController
|
||||
));
|
||||
}
|
||||
if ($this->hasPermission('director/deploy')) {
|
||||
$this->actions()->add(DeployConfigForm::load()
|
||||
->setDb($this->db())
|
||||
->setApi($this->api())
|
||||
->handleRequest());
|
||||
if ($this->db()->hasDeploymentEndpoint()) {
|
||||
$this->actions()->add(DeployConfigForm::load()
|
||||
->setDb($this->db())
|
||||
->setApi($this->api())
|
||||
->handleRequest());
|
||||
}
|
||||
}
|
||||
|
||||
$table->renderTo($this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user