Merge pull request #46578 from nextcloud/backport/46555/stable29

This commit is contained in:
John Molakvoæ 2024-07-27 17:32:30 +02:00 committed by GitHub
commit 18076c764b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,6 +177,10 @@ class AppFetcher extends Fetcher {
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
$apps = parent::get($allowPreReleases);
if (empty($apps)) {
$this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']);
return [];
}
$allowList = $this->config->getSystemValue('appsallowlist');
// If the admin specified a allow list, filter apps from the appstore