From b50a360ff12205be2256e537e375638e90ac0e27 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 28 Sep 2017 20:18:25 +0200 Subject: [PATCH] ConfigController: do not fail without a valid... ...deployment endpoint refs #918 --- application/controllers/ConfigController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index c97a74e5..3d9f541c 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -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);