aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-10 08:29:41 +0100
committerJoas Schilling <coding@schilljs.com>2022-03-10 16:10:25 +0100
commit4f9c8b08ca08b3ceb29fd47127359d7f2416d915 (patch)
tree12f35e6cb9a24f59909462bacdaa4333d6f988fb /lib/private/App
parenta4111d4846d1b77e4add0d9d60fb52b633f115d6 (diff)
downloadnextcloud-server-4f9c8b08ca08b3ceb29fd47127359d7f2416d915.tar.gz
nextcloud-server-4f9c8b08ca08b3ceb29fd47127359d7f2416d915.zip
Similar to the fetch() method respect the channel in the get()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php4
1 files changed, 3 insertions, 1 deletions
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