From a9ba631e4d50ef1d06d67b8b501295d86ff6f7d9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Mar 2022 08:30:50 +0100 Subject: Also allow pre-releases and nightlies when installing from git Signed-off-by: Joas Schilling --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/App') diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 075c4853c34..579f350b5bb 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -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'); -- cgit v1.2.3