ConfigController: do not fail without a valid...

...deployment endpoint

refs #918
This commit is contained in:
Thomas Gelf 2017-09-28 20:18:25 +02:00
parent 9fd66dbe99
commit b50a360ff1

View File

@ -150,11 +150,13 @@ class ConfigController extends ActionController
)); ));
} }
if ($this->hasPermission('director/deploy')) { if ($this->hasPermission('director/deploy')) {
if ($this->db()->hasDeploymentEndpoint()) {
$this->actions()->add(DeployConfigForm::load() $this->actions()->add(DeployConfigForm::load()
->setDb($this->db()) ->setDb($this->db())
->setApi($this->api()) ->setApi($this->api())
->handleRequest()); ->handleRequest());
} }
}
$table->renderTo($this); $table->renderTo($this);
} }