From: Vincent Vanwaelscappel Date: Fri, 2 Jun 2023 10:24:48 +0000 (+0200) Subject: wait #5980 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4b88e7e0abee1c7f82ead52ce051832c98a16478;p=fluidbook-toolbox.git wait #5980 @0.5 --- diff --git a/app/Fluidbook/Packager/Download.php b/app/Fluidbook/Packager/Download.php index d95f8607d..9633db361 100644 --- a/app/Fluidbook/Packager/Download.php +++ b/app/Fluidbook/Packager/Download.php @@ -33,7 +33,7 @@ class Download extends DownloadBase protected $_params = []; - public function __construct($entry, $version, $action, $user=null, $params = []) + public function __construct($entry, $version, $action, $user = null, $params = []) { parent::__construct($entry, $action, $user); $this->_params = $params; @@ -107,8 +107,8 @@ class Download extends DownloadBase if (!$server) { throw new \Exception('No valid server defined for external installation'); } - if (!$dest) { - throw new \Exception('No path defined for external server installation'); + if (!$dest && !$server->allows_root) { + throw new \Exception('No path defined for external server installation : this server does not allow installing on root'); } $translateVariables['server'] = $server->name;