diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-10-13 18:14:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 18:14:48 +0200 |
commit | c721581cd960c51bf25b85684d5327a08d8a6d42 (patch) | |
tree | 686807e55a02a13ea332249ec94f8364458a6a66 /lib/private/App | |
parent | 1a6bac58747165b3d8a8304e7ebaeb296b6e07a8 (diff) | |
download | nextcloud-server-c721581cd960c51bf25b85684d5327a08d8a6d42.tar.gz nextcloud-server-c721581cd960c51bf25b85684d5327a08d8a6d42.zip |
Fix variable
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 10 |
1 files 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); }); } |