mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Fix variable
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
This commit is contained in:
parent
1a6bac5874
commit
c721581cd9
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue