From 4f9c8b08ca08b3ceb29fd47127359d7f2416d915 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Mar 2022 08:29:41 +0100 Subject: Similar to the fetch() method respect the channel in the get() Signed-off-by: Joas Schilling --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/private/App/AppStore') diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 6c201978e1f..075c4853c34 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -183,7 +183,9 @@ class AppFetcher extends Fetcher { public function get($allowUnstable = false) { - $apps = parent::get($allowUnstable); + $allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily'; + + $apps = parent::get($allowPreReleases); $allowList = $this->config->getSystemValue('appsallowlist'); // If the admin specified a allow list, filter apps from the appstore -- cgit v1.2.3