diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-10 08:30:50 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-10 16:10:25 +0100 |
commit | a9ba631e4d50ef1d06d67b8b501295d86ff6f7d9 (patch) | |
tree | f097e12b11dedb9218c154a1d6b3b79c147eabd0 /lib/private/App | |
parent | 4f9c8b08ca08b3ceb29fd47127359d7f2416d915 (diff) | |
download | nextcloud-server-a9ba631e4d50ef1d06d67b8b501295d86ff6f7d9.tar.gz nextcloud-server-a9ba631e4d50ef1d06d67b8b501295d86ff6f7d9.zip |
Also allow pre-releases and nightlies when installing from git
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'); |