From c721581cd960c51bf25b85684d5327a08d8a6d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 13 Oct 2021 18:14:48 +0200 Subject: [PATCH] Fix variable Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 2216999e12f..7fa0c0c9ac5 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -183,12 +183,12 @@ class AppFetcher extends Fetcher { public function get($allowUnstable = false) { $apps = parent::get($allowUnstable); - $whitelist = $this->config->getSystemValue('appsallowlist'); + $allowList = $this->config->getSystemValue('appsallowlist'); - // If the admin specified a whitelist, filter apps from the appstore - if (is_array($whitelist) && $this->registry->delegateHasValidSubscription()) { - return array_filter($apps, function ($app) use ($whitelist) { - return in_array($app['id'], $whitelist); + // If the admin specified a allow list, filter apps from the appstore + if (is_array($allowList) && $this->registry->delegateHasValidSubscription()) { + return array_filter($apps, function ($app) use ($allowList) { + return in_array($app['id'], $allowList); }); }