Fix variable

Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2021-10-13 18:14:48 +02:00 committed by GitHub
parent 1a6bac5874
commit c721581cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});
}