Also allow pre-releases and nightlies when installing from git

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-03-10 08:30:50 +01:00
parent 4f9c8b08ca
commit a9ba631e4d
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -90,8 +90,8 @@ class AppFetcher extends Fetcher {
return [];
}
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily';
$allowNightly = $allowUnstable || $this->getChannel() === 'daily';
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
$allowNightly = $allowUnstable || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
foreach ($response['data'] as $dataKey => $app) {
$releases = [];
@ -183,7 +183,7 @@ class AppFetcher extends Fetcher {
public function get($allowUnstable = false) {
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily';
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
$apps = parent::get($allowPreReleases);
$allowList = $this->config->getSystemValue('appsallowlist');